Untitled
unknown
plain_text
a year ago
640 B
6
Indexable
function firstnamevalidation(econtext) {
var formContext = econtext.getFormContext();
var reg = /^[a-zA-Z ]*$/;//allows space
var firstval = formContext.getAttribute("firstname").getValue();
if ((GetValue("firstname", econtext) != null) && (GetValue("xrm_enquirytype", econtext) != null)) {
if (!(firstval.match(reg))) {
//alert("No Numeric and Special Character is Allowed");
AlertNew("Numeric and Special Character is Not Allowed");
formContext.getAttribute("firstname").setValue(null);
}
else {
return false;
}
}
}Editor is loading...
Leave a Comment