This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter('fluentform_validate_input_item_input_date', function ($errorMessage, $field, $formData, $fields, $form) { | |
$fieldName = 'weddingdate'; | |
$target_form_id = 104; | |
if ($target_form_id != $form->id) { | |
return $errorMessage; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var from = "from"; //change the name attribute of the from date field | |
var to = "to"; //change the name attribute of the to date field | |
var showHere = "showHere"; //change the name attribute of show difference field | |
let fp = flatpickr("#ff_91_from", {}); // Your Form's ID | |
let fp2 = flatpickr("#ff_91_to", {}); // Your Form's ID | |
function getDayDiff(input_name_1, input_name_2) { | |
var $date1 = $form.find('input[name='+input_name_1+']'); | |
var time2 = (new Date()).getTime(); |
NewerOlder