How to add a validation option on Exclusion list? | XM Community
Skip to main content
Question

How to add a validation option on Exclusion list?

  • June 28, 2021
  • 3 replies
  • 48 views

I have a form field question(with 3 form fields) where I want respondents to enter email ID.
I have a certain 'exclusion list'- A list of email IDs(30+) I don't want in the form fields.
My main question is that I want to add a validation where the form field wont go forward if Emails from the 'exclusion list' are entered.
Please help.

Also, adding Validation on each and every email ID is an option, but a lengthy one. So please suggest something else.
Attaching Screenshot for better understanding.

image.png

3 replies

grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • June 28, 2021

You have to add a regex which will store the values from 30 emails as you mentioned and then throw a custom validation if the regex matches.


  • Author
  • June 28, 2021

grahulp5 The 30 emails I mentioned are the ones I DO NOT want in my form fields.


grahulp5
QPN Level 3 ●●●
Forum|alt.badge.img+13
  • QPN Level 3 ●●●
  • June 29, 2021

Yeah so just update Regex and do the custom validation if the email for each textbox matches the regex then throw an error and if not then click the next button.