How to validate matching email addresses and other text entry questions? | XM Community
Skip to main content

We have a survey that is used as a student application. I get a fair number of applicants who put in invalid email addresses and/or put themselves as a contact name when it should be someone else. What is the best way to validate using the following as an example:
Q1: Enter your email
Q2: Re-enter your email and if it matches Q1, it will pass validation.
Q3: Enter your name
Q4: Enter the name of the contact person and if it does NOT match the name in Q3, it will pass validation.

For the validation between Q1 and Q2 (matching email addresses), set up a Custom Validation like this. Use the Pipe Text feature to find the question ID code from the first email field (Q1).
image.png
For the validation between Q3 and Q4, you can do something similar to the above, but with an "Is not equal to" clause instead. Just be aware that someone could enter the same name in both fields and have spaces somewhere, or use different versions of the same name (Matt or Matthew, for instance), and it would pass validation.


Thanks MatthewM. This was much easier than I thought it would be!


Leave a Reply