Hi,
I've been testing datepicker options.
I can not set any maxDate.
I used the syntax described in here according to this thread :
I put this value in the 'DateTime Picker config' in the general tab of the form.
In the javascript console, I get this error when the field is focused and the datepicker is not displayed:
I have checked on Chrome (V14), FF6 and IE9. I get the same error.
Apparently your are using an old script that is buggy sometimes (and with no support). When you plan to move to the new datepicker ?
I also discovered that you've created a 'custom Datepicker' action.
When putting the code in the 'Extra options extension', the datepicker is displayed :o , but maxDate is not defined 😈 .
I really get confused, which option should we use to set datepicker options ?
A suggestion : in my opinion, every datepicker options should be set in the 'other' tab of each Datetime box element. Today, it is not possible to set different minDate in datepickers of the same form. By coding my suggestion, one could create a travel form with a first 'departure date' datepicker (using today minDate) and a second 'return trip date' datepicker (using previously selected date as minDate).
I really do not understand why you've created the 'custom Datepicker' action, in my opinion it is uselees and confusing. The 'DateTime Picker config' in the general tab of the form is sufficient to set commun options (eg. language, date time formats).
My config : J!1.7.1 CF 4 RC2.0
I've been testing datepicker options.
I can not set any maxDate.
I used the syntax described in here according to this thread :
minDate:{date:'28-9-2011',format:'d-m-Y'}
I put this value in the 'DateTime Picker config' in the general tab of the form.
In the javascript console, I get this error when the field is focused and the datepicker is not displayed:
Uncaught TypeError: Cannot call method 'toString' of undefined, datepicker.js:670
I have checked on Chrome (V14), FF6 and IE9. I get the same error.
Apparently your are using an old script that is buggy sometimes (and with no support). When you plan to move to the new datepicker ?
I also discovered that you've created a 'custom Datepicker' action.
When putting the code in the 'Extra options extension', the datepicker is displayed :o , but maxDate is not defined 😈 .
I really get confused, which option should we use to set datepicker options ?
A suggestion : in my opinion, every datepicker options should be set in the 'other' tab of each Datetime box element. Today, it is not possible to set different minDate in datepickers of the same form. By coding my suggestion, one could create a travel form with a first 'departure date' datepicker (using today minDate) and a second 'return trip date' datepicker (using previously selected date as minDate).
I really do not understand why you've created the 'custom Datepicker' action, in my opinion it is uselees and confusing. The 'DateTime Picker config' in the general tab of the form is sufficient to set commun options (eg. language, date time formats).
My config : J!1.7.1 CF 4 RC2.0