Forums

set different config for two or more datepicker in one form

newtester 07 Jun, 2012
Hi,
the case is like this :
I have 2 datepicker, 1st datepicker is for 'Departure Date', which my client want it to set to current month,
2nd datepicker is for date of birth which I choose to show year to choose first.
so I set startView:'years' in DateTime Picker config

My question is how to set different configuration for each Datepicker in the same form ??


thx
arie
Max_admin 07 Jun, 2012
Hi,

Using the "Custom Datepicker" element under the "power fields" section in the wizard.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
newtester 07 Jun, 2012
sorry, but how to use it
lets say I have three datepicker and the ids :
1. departure
2. arrival
3. dob

datepicker no.1 & 2 must shows month at first
datepicker no.3 mush shows year at first view

please advice
thx
Max_admin 10 Jun, 2012
Hi,

Just use the default configuration for fields 1 and 2, and drag/configure a "Custom Datepicker" action for the 3rd one, you can identify picker fields using classes, so you should add a unique class to the 3rd field and use it in the "Custom Datepicker" action.

Let me know if you still can't do it and I will try to make a short tutorial in the FAQs page.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.