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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Default Phone number validation in RTM forms

(0) ShareShare
ReportReport
Posted on by 64
I'm starting to transition our forms to RTM, and when i tried to use the default phone number validation I'm not able to actually submit a valild phone number. Below is the regular expression value I pulled from the html.  Does anyone know what phone number format this is trying to get as 555-555-5555 didn't work. 
^(//+[(]?[0-9]{1,4}|[(]?00[0-9]{0,2}|[(]?011[0-9]?|[(]?010[0-9]?)[)]?([ //-()]*[0-9][ //-()]*){3,16}$
I have the same question (0)
  • Suggested answer
    Dengliang Li Profile Picture
    Microsoft Employee on at
    Hi,
     
    This regular expression corresponds to a phone number in the format:
    The phone number is spliced from two sets of digits.
    The first set of digits has four cases:
    Case 1:
    +(1 to 4 digits) ,'(' and ')' are optional.
    Example: +1, +(1234)
    Case 2:
    00(0 to 2 digits) ,'('and')' are optional.
    Example: 00, 00(), 00(1)
     
    Case 3:
    (011 One digit optional), '('and')' are optional.
    Example: 011, 0111, (011), (0111)
     
    Case 4:
    (010 One digit optional), '('and')' are optional.
     Example: 010, 0101, (010), (0101)
     
    Spaces, dashes, and parentheses can be inserted between the second set of digits. The quantity of these three types of characters to be inserted: 0 or more. The second group has no less than 3 and no more than 16 digits.
    For example: 555, 555-555-5555, 555 555 5555, 555-555 5555
     
    Therefore, the complete example of a phone number is as follows:
    +(1234)555-555-5555, 00555-555-5555, 011 555-555-5555, 010-555-555-5555
     
    If my answer was helpful, please click Like, and if it solved your problem, please mark it as verified to help other community members find more.
    If you have further questions, please feel free to contact me.

    Best Regards,
    Dengliang Li

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 202 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans