How to add a validation option on Exclusion list?

f_inamdar
f_inamdar IndiaCommunity Member Qubie ✭
edited July 10 in Survey Platform

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.



Answers

  • grahulp5
    grahulp5 IndiaCommunity Member Guru ✭✭

    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.

  • f_inamdar
    f_inamdar IndiaCommunity Member Qubie ✭

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

  • grahulp5
    grahulp5 IndiaCommunity Member Guru ✭✭

    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.