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 365 | Integration, Dataverse...
Suggested Answer

Requiered format of a field should be 2 types

(0) ShareShare
ReportReport
Posted on by 5

Dear all,

I am building a solution and I need to put a field on the form that has 2 options of required format.

The format should be

4-3-3

or 4-2-3-1 

Is this possible? If yes; how can I do this?

Thanks!

I have the same question (0)
  • Guido Preite Profile Picture
    54,086 Moderator on at

    you can do with some javascript bound the the onchange event of the field

  • Charlotte Versmissen Profile Picture
    5 on at

    Would there be a way to do it without using Javascript?

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi Charlotte, 

    In the Unified Interface, we can use the Input Mask Control on forms without any JavaScript. 

    Note: Input Mask control only supports Single Line of Text field type.

    pastedimage1639965019284v1.png

    How to Format Phone Number Fields in Dynamics 365 Customer Engagement (CRM) | Stoneridge Software

    Also, you can refer following link for js:

    Using JavaScript How to Format a Phone Number Field in Dynamics 365? (adyatantech.com)

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 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 74

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans