Skip to main content

Notifications

Announcements

No record found.

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!

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Requiered format of a field should be 2 types

    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)

  • RE: Requiered format of a field should be 2 types

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

  • Guido Preite Profile Picture
    Guido Preite 54,087 Super User 2024 Season 1 on at
    RE: Requiered format of a field should be 2 types

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans