Hello,
I have created a form for a client's website using Chronoforms. It is great, thanks for the awesome app. There is one request from the client that I have been trying to implement without success, however. They want the date picker to only allow dates to be chosen that are more than 2 weeks in the future from the current date. I used some PHP code to accomplish this and added it to the extra parameters area of my date-picker. below is the simple code I used...
It works, however, only after first saving the form. Once the current day advances, it only blocks the next 13 days out, then 12 days, and so on. How can I get the date picker to recognize the current date and block out the next 14 days without re-saving the form? The form is current here: http://www.martinaviation.info/
I appreciate any help you can provide.
I have created a form for a client's website using Chronoforms. It is great, thanks for the awesome app. There is one request from the client that I have been trying to implement without success, however. They want the date picker to only allow dates to be chosen that are more than 2 weeks in the future from the current date. I used some PHP code to accomplish this and added it to the extra parameters area of my date-picker. below is the simple code I used...
$date = date('m/d/Y h:i:s a', time()); data-start_date=<?php echo date('m-d-Y', strtotime("+14 days")); ?>
It works, however, only after first saving the form. Once the current day advances, it only blocks the next 13 days out, then 12 days, and so on. How can I get the date picker to recognize the current date and block out the next 14 days without re-saving the form? The form is current here: http://www.martinaviation.info/
I appreciate any help you can provide.