Hello,
I need to add the following code for a date calculation with the form builder:
jQuery(document).on( 'after.load.forminator', function( form_id ){
// Get today date
var d = new Date();
var year = d.getFullYear();
var month = d.getMonth();
var day = d.getDate();
// Today + 1 year
var c = new Date(year + 1, month, day);
document.querySelector('#forminator-module-1888 #hidden-2').value = c;
} );
});
I understand I need to use a Hook for that but don’t know which type of hook is best suited here.
Thanks!