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

How to add a validation option on Exclusion list?

  • 29 June 2021
  • 3 replies
  • 30 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

Userlevel 4
Badge +13

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.

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

Userlevel 4
Badge +13

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.

Leave a Reply