How can I disable the past dates on the calendar? I can not seem to get this to work in CF6. In version CF5 in the setup section I was able to drag a Load JavaScript to the On Load area where I place this code and got it working:
jQuery(document).ready(function($){
$("#AppointmentDate").data("start_date", '<?php echo date("d-m-y", strtotime('+0 days')); ?>');
});
But now in CF6 I try using the same code in a custom code in the setup area and it did not work, I also try putting the code in the JavaScript box in the design area and ticked the Add inside domready event, which did not work.
Any help will be great.
jQuery(document).ready(function($){
$("#AppointmentDate").data("start_date", '<?php echo date("d-m-y", strtotime('+0 days')); ?>');
});
But now in CF6 I try using the same code in a custom code in the setup area and it did not work, I also try putting the code in the JavaScript box in the design area and ticked the Add inside domready event, which did not work.
Any help will be great.
Hi evilsnoop,
In v6 under the Calendar field settings > Advanced > start date, use this:
Best regards,
Max
In v6 under the Calendar field settings > Advanced > start date, use this:
{date:Y-m-d}
Best regards,
Max
This topic is locked and no more replies can be posted.