Compare 2 email fields and validate
-
Hello,
I want to compare 2 email fields and validate them. I have installed ‘contact form add confirm’ plugin and I want to display the error messages on ‘confirm’ button click event if the fields don’t match.
I could find these links regarding this topic but somehow I couldn’t solve the problem.
1) https://stackoverflow.com/questions/6255367/contact-form-7-is-there-a-confirm-e-mail-input-type
2) https://contactform7.com/2015/03/28/custom-validation/I tried customizing the code in 1st link and almost solved the problem. But while testing, I tried to enter abc@abc.com in the 1st email field and abc@abc.org in the 2nd one but there was no error message.
Can anyone suggest how to check whether the entered strings are exactly the same?
Thanks
- The topic ‘Compare 2 email fields and validate’ is closed to new replies.