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

How to add a validation option on Exclusion list?

  • Jun 28, 2021 10:08 PM UTC
  • 3 replies
  • 70 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+18
  • QPN Level 3 ●●●
  • Jun 28, 2021 10:13 PM UTC

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
  • Jun 28, 2021 10:47 PM UTC

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+18
  • QPN Level 3 ●●●
  • Jun 29, 2021 1:34 PM UTC

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.