Validate Email Address

To validate the email address value entered in a text field use the following function in script

/**
* Function to validate email
* return{} boolean
*/
function emailsValidate(email) {
return /^[^\s@]+@[^\s@]+.[^\s@]+$/.test(email)
}

Leave a comment

Your email address will not be published. Required fields are marked *