Forums

Chronoforms v6 Datepicker specific dates

gotpowr 28 Feb, 2019
Currently in my v4 I'm using restricted (specific dates) with the MooTools picker:
minDate: start_date,maxDate: end_date, availableDates: {2018: {10: [2,16,30], 11: [20], 12: [4,18]}, 2019:{ 1: [1,15,29], 2: [5,19], 3: [5,19], 4: [2,16,30], 5: [7,21], 6:[4,18]}}

This allows people to register for specific events that occur on the first, third, and fifth Tuesdays in a month. By using the dynamic start/end, I can block them from registering too close to the event, or too far for a future events.

In looking at v6, I know the datepicker changed and the option doesn't seem to be available. Am I missing something? Is there a way to do that?

If not, is there a way to use the mootools datepicker in v6? I'd like to update my forms, but the main one that's used specifically needs this ability.
healyhatman 28 Feb, 2019
There are earliest and latest date/time options, but as far as I can see there's no option to only allow / disable specific dates. I doubt you would be able to import the mootools version without jQuery conflicts, but you could either import a different jQuery based calendar picker and manually add it in or manually code the functionality in if you know enough about JavaScript.
gotpowr 04 Mar, 2019
Where would I go to manually code it in? Although I'm not fluent in JavaScript, I might be able to figure it out?
How do import other calendar pickers?
This topic is locked and no more replies can be posted.