Email validation using regex CRM 2011
function
validateEmail(context){
var
email =context.getEventSource().getValue();
emailRegex
=/^(\w+[\-\.])*\w+@(\w+\.)+[A-Za-z]+$/;
if(!email.match(emailRegex)){
event.returnValue = false;
alert("The format of the email entered
is incorrect.") ;
}
}
No comments:
Post a Comment