Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

Can you require a certain amount of characters on a field?

Posted on by

I know we can set character limits but is there a way to set a certain amount of characters a field must have?  For example if an ID number is 5 digits can I set the field that it requires 5 digits so that it won't allow saving with anything more or less than 5?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can you require a certain amount of characters on a field?

    You can do it in 2 ways. First one is to set limit in field properties. Second way is Javascript.

    Refer this:

    community.dynamics.com/.../229260

  • Suggested answer
    RE: Can you require a certain amount of characters on a field?

    Hi,

    You can set the min require length to any field using the JavaScript. there is no OOB feature available for this.

    Mark as Answered if it helps you.

  • Suggested answer
    Gopalan Bhuvanesh Profile Picture
    Gopalan Bhuvanesh 11,397 on at
    RE: Can you require a certain amount of characters on a field?

    Hi

    You would have to use custom code.

    Please refer the following thread:

    community.dynamics.com/.../188935

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 Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans