Datepicker for selected dates?

frontal 25 Jan, 2012
Hello,
I am using your excellent Chronoforms to produce an orderingsystem for a travel-agency, but I have a big challenge:
I need to display a datepicker/calendar with only a few selectable dates!
How can I do this?

Regards,
Kurt
Norway
GreyHead 25 Jan, 2012
Hi Kurt,

Which version of ChronoForms are you using?
You can find the version from Site Admin | Extensions | Install/Uninstall | Components in Joomla! 1.5 or Site Admin | Extensions | Extension Manager | Manage in Joomla! 1.6/1.7/2.5.

Bob
frontal 25 Jan, 2012
Hi :-)

Version: 4.0 RC2.0
frontal 26 Jan, 2012
Hello again,

Did you find any solution or advice here?

Thanks,
Kurt
Max_admin 31 Jan, 2012
Hi Kurt,

If its a range of dates then you can use the "minDate" and "maxDate" options for the picker.

Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
frontal 31 Jan, 2012
Hello!

Its not only a selection of dates, but more a few dates each month, so it would be great to have the possibility to select each date.
Is that somewhat possible?
GreyHead 31 Jan, 2012
Hi frontal,

Sorry, I've had this tab open for ages waiting to find the time to test an answer :-(

I don't think it is possible with the Monkey Physics datepicker used by ChronoForms without hacking the code.

BUT, if you don't mind a little work you can replace that with the MooTools DatePicker which is an updated and improved form of the Monkey Physics one. There are instructions for making the change here .

The docs for the MooTools Date Picker are here and you'll see that there is an option that does what you need:

availableDates: (object, defaults to null) When only a few dates should be selectable. An object like {2011: {1: [19, 29, 31], 3: [5, 19, 24]}} with all the dates (year -> months -> days).



Bob
This topic is locked and no more replies can be posted.