Simple email validation for forms

Document created by eharris04 Employee on Jun 6, 2016Last modified by eharris04 Employee on Jun 6, 2016
Version 2Show Document
  • View in full screen mode

Ever needed to add email validation to your Nintex Form.  Well this short regex code can help you do just that.

 

AuthorEric Harris
Long Description

RegExEmail.gif

I was working on a form that required email validation and I know its possible with JavaScript, but I got to thinking, surely there is a way to do it with a regular expression. So after digging, I came across this post http://emailregex.com/ and well you can see it there. Its super simple and easy to use.

 

Implement this if 4 easy steps:

  1. Open up your form and select the field you want the email validation on.
  2. Select More Settings > Validation > Regular Expression
  3. Copy and paste the code from below into that are and add your error message
  4. Save the form control and don't forget to save your form after modifying it.
Dependencies

None

Support Info

Eric Harris -  Visit http://emailregex.com/

Compatibility

Nintex Forms 2010

Nintex Forms 2013

Nintex Forms Office 365

Platform

SharePoint Server 2010

SharePoint Server 2013

Office 365

Screenshots

Additional Information

Here is the regular expression you can use

 

(?:[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])

Nintex Xchange Terms of Use Policy

Nintex makes no warranty or guarantee about the reliability, performance, quality, or functionality of any assets, and any assets you install are therefore provided as is. By downloading this asset, you agree to the terms of use.

2 people found this helpful

Attachments

Outcomes