web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

phone number format

(0) ShareShare
ReportReport
Posted on by 267

I have the requirement for phone number format in crm. the user wants a Europe format. 

*This post is locked for comments

I have the same question (0)
  • awalters Profile Picture
    3,079 on at

    There are different phone number formats in Europe - are they wanting all European formats to work, and no non-European ones to work?  Are they wanting to match it to country?

    If you're on v9 Online and using the Unified Interface, you can set field masks, but to my knowledge they can't be conditional (i.e. if country = X then this format, if country = Y that format, etc...).  If you need that level of logic, or aren't using the Unified Interface, you'd need to write this in Javascript.  Some examples (some CRM specific, and some just about general formatting/parsing) are:

    community.dynamics.com/.../244975

    social.microsoft.com/.../dynamics-crm-2011-uk-phone-number-javascript-validation

    blog.stevenlevithan.com/.../validate-phone-number

    and a library that you may be able to leverage:

    github.com/.../libphonenumber

  • on-premise Profile Picture
    267 on at

    +44(20)7183-8750 this the format i need.

  • awalters Profile Picture
    3,079 on at

    If it's just one format, that certainly makes things easier.  So yes, you could definitely do that with a field mask if you're in Online and using Unified Interface.  Otherwise, the javascript examples above are still applicable with slight adaptation for your specific format.  If it's a single format you wouldn't need the added complexity of using the library or anything - something more simple like in the answers of the first post would work just fine.

  • necsa Profile Picture
    3,455 on at

    Please take as reference following links

    www.powerobjects.com/.../formatting-a-phone-field-in-crm-2013

  • Suggested answer
    Vipin J Profile Picture
    1,603 on at
  • FidelMartin Profile Picture
    128 on at

    Hello Varma,

    To change the Phone number format in CRM for Europe user.

    You can refer this blog.

  • Victor 365 Profile Picture
    67 on at

    Thanks but tour blog refers to the same kind of article where you can set only one format. In Europe there are different format and different number of digits (ex Belgium 9 vs France 10).

    How to deal with this in 2023 ? Still not possible ?

  • Suggested answer
    XM-22040801-0 Profile Picture
    11 on at

    Hi Victor / Bonjour :)

    You can use this PCF : pcf.gallery/.../

  • Victor 365 Profile Picture
    67 on at

    thanks, I'll investigate this  ! looks very good.

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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans