Notifications
Announcements
No record found.
Hi,
i am a little new to CRM...
Can anyone tell me how to format a CRM text field to do the format mask (format mask - XX-99-9999), can anybody help me with a script to do this...
Thanks
*This post is locked for comments
Refer this blog:
www.powerobjects.com/.../formatting-a-phone-field-in-crm-2013
Nothing related to CRM much actually, apart from that getting value and setting value to CRM field, and call your method on Onchange of the field.
You can simply look for the sample code to format phone number using java script and use that in CRM, just you need to pass that value from the field.
function FormatPhone()
{
var Value=Xrm.Page.getAttribute("phonenumber").getValue();
Xrm.Page.getAttribute("Phonenumber").setValue(FormatNumber(Value));
}
function FormatNumber()
//you can get this code easily, if yo will try to search, very common requirement
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
SA-08121319-0 4
Calum MacFarlane 4
Alex Fun Wei Jie 2