Validating data with custom regular expressions | Community
Skip to main content
Answered

Validating data with custom regular expressions

  • November 21, 2023
  • 3 replies
  • 315 views

I want the “email?” question in my typeform to validate that the respondents email is using the correct format, in google forms you can use 

  • regular expression matches: [a-zA-Z0-9_\.\+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-\.]+ 

and then set a custom error message like “Please provide a valid email address!”.

In type form it seems I can kind of set this logic, but then the only action is a “goto”. I don’t want the user to go anywhere else, I just want an error message saying “Please provide a valid email address!” before they can move on, how do I do this?

thank you

Best answer by mathio-tf

Hi @benparkins and @john.desborough ,

there is an email question type you can use to collect email addresses.

Unfortunately there is no regex validation available and I have other information on this.

View original

3 replies

john.desborough
Forum|alt.badge.img+6
  • Certified Partner & Champion
  • 5294 replies
  • November 21, 2023

@benparkins - doing a regex validation is not something that you can do in typeform. There are a number of posts in the community on this topic. 

the workaround, at the moment, is to use Zapier to connect your typeform to something like Neverbounce to validate the email address. Not perfect but it works. 

@mathio @picsoung - do you folks have any idea what Product might be looking at to resolve this scenario? or other workarounds?

 

des


mathio-tf
Typeform
Forum|alt.badge.img+5
  • Typeform
  • 888 replies
  • Answer
  • November 21, 2023

Hi @benparkins and @john.desborough ,

there is an email question type you can use to collect email addresses.

Unfortunately there is no regex validation available and I have other information on this.


  • Author
  • Explorer
  • 2 replies
  • November 21, 2023

Thank you. that worked!

 

Another quick question, have you added support for changing the text of descriptions yet? or do they still automatically set themselves as one shade lighter than the question text?

 

 https://community.typeform.com/build-your-typeform-7/change-color-of-description-font-1479


Reply