• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Name of today in form text field

Name of today in form text field 9 years 10 months ago #31512

  • pay4
  • pay4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hi,

What I'm trying to accomplish is to set the name of the current day in a text field. This way there is a default setting and the visitor is still able to change the name of the day when needed.

I've tried to use php but was unsuccessful to do this for a text field.

Any ideas are welcome.

Thanks,

Redmac
The administrator has disabled public write access.

Name of today in form text field 9 years 10 months ago #31518

  • cosmin.cristea
  • cosmin.cristea's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 756
  • Thank you received: 144
Add this in the Default Value of the field you are trying to populate with the Weekday.
//<code>
$date = getdate();
$jd=gregoriantojd($date['mon'], $date['mday'], $date['year'] );
return jddayofweek($jd,1);
//</code>

let me know if it works
My help is not official customer support. To receive your support, submit a ticket by clicking here
The administrator has disabled public write access.

Name of today in form text field 9 years 10 months ago #31553

  • pay4
  • pay4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Yes it works GREAT. Thank you.

:woohoo:
The administrator has disabled public write access.

Name of today in form text field 9 years 8 months ago #32317

  • pay4
  • pay4's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hi,

Would it also be possible to use a different language with this solution?

Thanks.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!