Bruins Posted October 11, 2017 Report Share Posted October 11, 2017 How do I validate an email address like rkazunaga@mednet.ucla.edu validating the @mednet.ucla.edu on a submission form. Quote Link to comment Share on other sites More sharing options...
phenom94 Posted October 12, 2017 Report Share Posted October 12, 2017 Please see this article: Quote Link to comment Share on other sites More sharing options...
Mathilda Posted November 2, 2017 Report Share Posted November 2, 2017 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: <script> 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; } document.getElementById("caspioform").onsubmit=validateEmail; </script> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.