Jump to content
Sign in to follow this  

Email Validation

Recommended Posts

On 10/12/2017 at 12:54 AM, Bruins said:

How do I validate an email address like rkazunaga@mednet.ucla.edu validating the @mednet.ucla.edu on a submission form.

I modified a solution from this post for submission form. You may try using my script in the footer: 


function validateEmail(email)
var email =  document.getElementById("InsertRecordEmail_field").value;
    var splitted = email.match("^(.+)@thisdomainonly\.com$");
    if (splitted == null) 
return false;

    if (splitted[1] != null)
        var regexp_user = /^\"?[\w-_\.]*\"?$/;
        if (splitted[1].match(regexp_user) == null) 
return false;
        return true;

    return false;




Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this