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)
}
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)
}