Form validation to only allow .edu email addresses

Vote:
 

Is there a straightforward way to only allow .edu emails within Episerver forms?

I see the regular expression validator when creating a field but it doesn't seem to be working. 

#206393
Aug 19, 2019 18:44
Vote:
 

Hi,

You should be able to just use the regular expression validator, possibly in conjunction with the email validator to save having to come out with a giant, all-encompasing regex for your email validation like this:

In this instance I've used the regex .*\.edu$ to allow anything which ends with .edu. When I try to submit, this gives me the following:

or

#206397
Aug 19, 2019 19:23
Vote:
 

Hey Paul,

Thanks this exactly what I was looking for and it works perfectly.

Gabe

#206399
Aug 19, 2019 20:28
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.