// Formatting Phone Number
function formatPhoneNumber(phoneNumber)
{
if (phoneNumber.length != 10) {
return phoneNumber;
}
var piece1 = phoneNumber.substring(0, 3); //123
var piece2 = phoneNumber.substring(3, 6); //456
var piece3 = phoneNumber.substring(6); //7890
return kendo.format("({0})-{1}-{2}", piece1, piece2, piece3);
}
More Reference here
How to format a phone number in Dynamic 365 crm
How to validate mobile with country code in Dynamic CRM
How to validate mobile number in Dynamic CRM
Remove comma from number fields in Dynamic 365 CRM
No comments:
Post a Comment