• 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: Prefill a field with today's date?

Prefill a field with today's date? 15 years 2 months ago #6712

  • RobPhatt
  • RobPhatt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Anyone help with this (simple?) one.

I want an RSFormPro form on a page, to collect visitor details.
Can anyone tell me if it's possible, (and how) to prefill a feild on the form with todays date?

I can see who to fill other default values in certain fields, but not the date.

Thanks in advance R.
The administrator has disabled public write access.

Re:Prefill a field with today's date? 15 years 2 months ago #6713

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hy ,

try this code into the Default Value Box of an textbox
//<code>
return date('Y-m-d',time());
//<code>
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
The administrator has disabled public write access.

Re:Prefill a field with today's date? 15 years 2 months ago #6714

  • RobPhatt
  • RobPhatt's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 6
Hey you're good at this! (I'm not)
Thank you that's perfect, and thanks for the rapid fix.
R
The administrator has disabled public write access.

Re:Prefill a field with today's date? 15 years 2 months ago #6717

Hi, i make exactly what you said but the code don't work for me. Could you please take a look? What i'm doing wrong? It show the field with the code: //<code> return date('Y-m-d',time()); //<code> but not with the date.

Take a look here please:
www.guilhermeboni.com/clientes/tenis/ind...n=com_forme&Itemid=6

Thanks a lot.
The administrator has disabled public write access.

Re:Prefill a field with today's date? 15 years 2 months ago #6719

  • bogdan
  • bogdan's Avatar
  • OFFLINE
  • RSJoomla! Official Staff
  • Posts: 122
  • Thank you received: 4
Hi,

The above code works only with RSForm! Pro only.
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here

RSJoomla! Development Team
Last Edit: 15 years 2 months ago by bogdan.
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!