Datepicker issues on configuration on Chronoforms v4 RC1.8

mat 09 May, 2011
I’d like to set some customization to a DateTime field like a minimum and maximum date and start the selection from year.
I tried – reading the options on this page – to set in the "DateTime Picker selector" field of general settings of the form some parameters for a custom class after patching as described here.
If works for some options like days, dayShort, months, monthShort, startDay, etc.
If I try something like this I get errors:
myclass::{minDate: [date: '10-03-2009', format: 'd-m-Y'], maxDate: [date: '25-06-2009', format: 'd-m-Y']}
(parse error)

myclass::{startView: decades}
(can’t find variable decades)
Do you know why? I’m on Joomla! 1.5
Thanks.
GreyHead 09 May, 2011
Hi mat,

A quick comment; I don't have time to test right now.

I think that you probably need quotes here myclass::{startView: 'decades'} and try the dates using the format 'Y-m-d' e.g. {date: '2009-03-10', format: 'Y-m-d'} I found with the delay code that not all formats worked.

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