Several Different Options Within the DateTime Picker Config

lascellesclarke 02 Aug, 2013
Hi Bob,
What is the absolute simplest way I can use several different config options within the DateTime Picker config? Do I comma-seperate them or what?
I want to use "minDate: new Date()" with "availableDates", because whenever I use "availableDates" by itself scrolling to previous months (even though blank) is still possible.

Thanks for your usual helpful response.
GreyHead 02 Aug, 2013
Hi lascellesclarke,

Yes, a comma separated list of options should work OK.

Bob
lascellesclarke 05 Aug, 2013
Hello Bob,
A comma-separated list does not work. When I use "minDate: new Date(),availableDates" it only parses the minDate: new Date()option.
GreyHead 05 Aug, 2013
Hi lascellesclarke,

What is the full entry you have in the options box?

Bob
lascellesclarke 05 Aug, 2013
minDate: new Date(),availableDates:{2013: {7: [30, 31], 8: [1, 2, 3, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]}}

I play around with it a bit to get it to work. So I also put a space between "," and "availableDates", also I place the minDate option at the end instead. None seem to work.
GreyHead 05 Aug, 2013
Hi lascellesclarke,

It's late here so just a quick thought . . .

Try adding the ;
minDate: new Date();,availableDates:{2013: {7: [30, 31], 8: [1, 2, 3, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]}}

I'll look some more in the morning.

Bob
lascellesclarke 06 Aug, 2013
Hello Bob,
You need not look any further. You were right the first time: the comma-separated procedure is the one that works, providing there is a space after the comma. Well, now that I am sure Chronoforms is the right choice, when I get back to work (after the Independence holidays here) I will bump up my credit card and (1)buy you a beer, (2)purchase an action or two and (3)maybe purchase the cookbook.
Thanks again, Bob
This topic is locked and no more replies can be posted.