SaaS CMS has officially launched! Learn more now.

Form validation to only allow .edu email addresses


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. 

Aug 19, 2019 18:44


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:


Aug 19, 2019 19:23

Hey Paul,

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


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.