Hello, from the faq: which does not work for me...
1.)For example, this will set the start date to today.
Where to put this code? Edit element settings(datepicker)->Advanced->Start Date if i put this code exactly like in the faq:
i look into firebug i see:
data-start_date="data-start_date=<?php echo date("d-m-Y"); ?>"
if i only put <?php echo date("d-m-Y"); ?>
it becomes data-start_date=<?php echo date("d-m-Y"); ?>
why doesnt it get a Date and stay code?
------------------------------------------------
And to have this set on page load you need to use this code in a "Load JS" action:
2.)a custom load js before form render, onload
firebug there is the date of today there instead of php <?php echo date("d-m-Y"); ?>
...seems to work, but no date in the datepickerfield prepopulated...
1.)For example, this will set the start date to today.
data-start_date=<?php echo date("d-m-Y"); ?>
Where to put this code? Edit element settings(datepicker)->Advanced->Start Date if i put this code exactly like in the faq:
i look into firebug i see:
data-start_date="data-start_date=<?php echo date("d-m-Y"); ?>"
if i only put <?php echo date("d-m-Y"); ?>
it becomes data-start_date=<?php echo date("d-m-Y"); ?>
why doesnt it get a Date and stay code?
------------------------------------------------
And to have this set on page load you need to use this code in a "Load JS" action:
2.)a custom load js before form render, onload
jQuery(document).ready(function($){
$("#field_id").data("start_date", '<?php echo date("d-m-Y"); ?>');
});
firebug there is the date of today there instead of php <?php echo date("d-m-Y"); ?>
...seems to work, but no date in the datepickerfield prepopulated...