Script:
function CheckInteger(Field) {
var Result = Xrm.Page.getAttribute(Field).getValue();
if (isInt(Result)) {
Xrm.Page.getAttribute(Field).setValue(Result);
}
else {
alert("Input is not numeric")
Xrm.Page.getAttribute(Field).setValue(null);
}
}
function isInt(value) {
return !isNaN(value) && parseInt(Number(value)) == value && !isNaN(parseInt(value, 10));
}
CRM 2013 Javacript Validate Integer
Posted by Unknown at 1/13/2015 02:35:00 pm
Labels: CRM 2013, Javascript
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment