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)

How to create a year field that just shows a 4 digit number...no commas

(0) ShareShare
ReportReport
Posted on by 26

I need to create a field called, "Year."  I need this field to be 4 digits and no comma.  How can I do this?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Radu Chiribelea Profile Picture
    6,667 on at

    You can create this as a plain text field and add some validation (JavaScript client side or a CRM Plug-in) and check that it contains only numbers.

    Regards,

    Radu

  • USA80 Profile Picture
    26 on at

    Thank you.  I just made a plain text field and maxed it out at 4 characters, so that will work.

  • RajatSharmaRaj Profile Picture
    on at

    You can also instead create whole number field if you only want numeric input and use Min and Max value settings already on whole number type fields. This way you won't need any customization. And comma values are allowed/shown on UI if user enters but not saved in backend value.

    Thanks

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