• 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: relating date range for dropdown options

relating date range for dropdown options 11 years 1 month ago #26863

  • peter52
  • peter52's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 65
  • Thank you received: 3
Hi !
Hopefully someone cann help me with a little bit of coding to change the default value of date fields when selecting an option from a dropdown field before.

I need a registration form for events, which are hold on a default day range but can be changed by the participants.

Dropdown field has 2 (or up to 4) options (event name)
next are date fields for "date from" and "date until"
date fields should show default values

I need something like

if dropdown_option="OPTION_1"
date1_from="03/17/14"
elseif dropdown_option2
date1_from="10/03/14"
endif

I guess this code (written in correct php) placed in the default value field of the date field will return the specified date.

Seems the key is to reference the dropdown field??

Can anybody help? - As You see I am by far not a coder ! ;-)
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!