Created
December 4, 2021 15:00
-
-
Save aimahdi/34740b3a69c1e7a7ec22a856bab62f48 to your computer and use it in GitHub Desktop.
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_phone', function($errorMessage, $field, $formData, $fields, $form) { | |
$target_form_id = 302; | |
if($form->id != $target_form_id ) { | |
return $errorMessage ; | |
} | |
var_dump($fromData->form_fields); | |
if( $formData['phone'] != $formData['phone_1'] ){ | |
$errorMessage= ['Error! Phone does not match']; | |
} | |
return $errorMessage; | |
}, 10, 5); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment