I tried to implement the Chronoform v5 Datepicker.
The datepicker itself shows up, but it's not possible to insert dynamic start and end dates.
Fixed start and end dates are working eg data-start_date=08-10-2017.
I followed the guidelines on https://www.chronoengine.com/faqs/70-chronoforms/cfv5/5216-date-control-using-cfv5-date-picker-element.
See also the attached Screenshots.
If i implement the php code in a custom html code, it shows exactly the same date as the fixed startdate.
<?php echo date("d-m-Y"); ?>
<?php echo date('d-m-').(date('Y')+1); ?>
It seems to me that the php code to get the data is not executed.
How can I get it to work?
The datepicker itself shows up, but it's not possible to insert dynamic start and end dates.
Fixed start and end dates are working eg data-start_date=08-10-2017.
I followed the guidelines on https://www.chronoengine.com/faqs/70-chronoforms/cfv5/5216-date-control-using-cfv5-date-picker-element.
See also the attached Screenshots.
If i implement the php code in a custom html code, it shows exactly the same date as the fixed startdate.
<?php echo date("d-m-Y"); ?>
<?php echo date('d-m-').(date('Y')+1); ?>
It seems to me that the php code to get the data is not executed.
How can I get it to work?
Hi maartenvdbroeck ,
Please post a link to the form so I can take a quick look.
Bob
Please post a link to the form so I can take a quick look.
Bob
Hi Bob,
Thank you for the quick responce.
I just put the form online, you can take a look on:
DatePickerForm
Thank you for the quick responce.
I just put the form online, you can take a look on:
DatePickerForm
Hi Maarten,
If you look at the Form HTML for the first date-picker you will see that the start-date value is wrong:
Bob
If you look at the Form HTML for the first date-picker you will see that the start-date value is wrong:
data-start_date="08-10-2017data-end_date"
Somehow the two lines are getting merged together. You could try adding a blank line between them, or echo an &019; character return and see if that corrects the problem.
Bob
This topic is locked and no more replies can be posted.