It is on this page
https://formidableforms.com/knowledgebase/javascript-examples/#kb-calculate-final-date
i have done all the changes but it is not working for me
that is my code All field ids are correct. check it 3 times
<script type="text/javascript">
jQuery(document).ready(function($){
$('#field_siq5u, #field_1jta1').change(function(){
var addDays = $("#field_siq5u").val();
var dateOneString = $("#field_1jta1").val();
if ( addDays === '' || dateOneString === '' ) {
return;
}
var finalDate = $("#field_1jta1").datepicker( 'getDate' );
finalDate.setDate(finalDate.getDate() + parseInt( addDays ) );
$("#field_yeatz").focusin();
$("#field_yeatz").datepicker("setDate", finalDate);
$("#field_yeatz").change();
});
});
</script>
What's not working? It's impossible to say from your code. Have you confirmed through step debugging that both the addDays AND dateOneString have values? If either one has an absence of value, you'll hit the return and nothing will happen. You may want to try the Kint debugger available in the WordPress plugin repository to help you with step debugging to make sure every one of the lines is returning a correct value.
Thanks i also agree that is correct. i will use the debugger thanks a lot.
the are some problems in console but the are all from formidable forms