You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added the code as is via Code Snippets, but form still accepts gmail and goes to our thank you page and adds the entries to the database. Is there anything i missed?
Activity
LauGau commentedon Oct 4, 2020
Yes you forget the PHP part in your function.php file like this :
AkhilAniyan commentedon Nov 2, 2020
Still the code not working!
Even though the emails are correct, it's not submitting! See here: https://prnt.sc/vc6158
If the email is wrong, the error shows fine: https://prnt.sc/vc61xb
Code Added to function.php: https://prnt.sc/vc63wr
AkhilAniyan commentedon Nov 2, 2020
@techjewel Can you please help?
alex-authlab commentedon Nov 3, 2020
Try this :
add_filter('fluentform_validate_input_item_input_email', function($errorMessage, $field, $formData, $fields, $form) { $target_form_id = 8; if($form->id != $target_form_id ) { return $errorMessage ; } if( $formData['email'] != $formData['email_1'] ){ $errorMessage= ['Error! Email does not match']; } return $errorMessage; }, 10, 5);If it does not work can you share your form URL link?