Hallo again!
I'm currently constructing a reservation request form for a hotel site. How can I dynamically set the minDate option of DatePicker so the starting value of the date field always be today's date and all date prior to today's date to be disabled?
I'm using validated CF v4 RC1.9
Thanks,
George
I'm currently constructing a reservation request form for a hotel site. How can I dynamically set the minDate option of DatePicker so the starting value of the date field always be today's date and all date prior to today's date to be disabled?
I'm using validated CF v4 RC1.9
Thanks,
George
I followd your solution, but still cannot set mindate to today's date (joomla 1.7.1 + chronoform 4.0 RC2.0).
Hi George,
Did you try to use a "Custom Datepicker" action with the PHP date function to dynamically set today's date in the minDate string ?
Regards,
Max
Did you try to use a "Custom Datepicker" action with the PHP date function to dynamically set today's date in the minDate string ?
minDate: { date: '<?php date("d-m-Y"); ?>', format: 'd-m-Y' }
Regards,
Max
This topic is locked and no more replies can be posted.