Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Remove comma from whole number field using Java Script, this whole number is incremented and update to primary key text field on other entity as record id

(0) ShareShare
ReportReport
Posted on by 340

I have whole number field, which is created on Numbercreation entity which is  incremented and updated for each record created on Service entity with the help of workflow proces, this whole number is updated on  primary key text field on Service entity as record number. The problem here with whole number field is it is updated with comma on Service enitty e.g. " 600,000,001"  in this format. How can I remove this comma on the whole number field for whole instance not for personal settings.

  • Suggested answer
    Fubar Profile Picture
    Fubar 2,752 on at
    RE: Remove comma from whole number field using Java Script, this whole number is incremented and update to primary key text field on other entity as record id

    For users that get added after the XrmToolbox fix suggested above, set the default format Settings->Administration->System Administration  then the Formats tab.

    However, making these settings is global, every form view etc, for all numbers and are you sure you want that (users usually complain that it is difficult to see what large numbers are particularly if there are lots of zeros and no separator)? I would just create a text field and copy the number into that field (stripping out non number characters) via plugin or workflow with a custom workflow activity.

  • Suggested answer
    meelamri Profile Picture
    meelamri 13,206 User Group Leader on at
    RE: Remove comma from whole number field using Java Script, this whole number is incremented and update to primary key text field on other entity as record id

    Hello, 

    You can change the individual personal settings for all the user with a tool named "User Settings Utility" available on XrmToolBox. 

    https://www.xrmtoolbox.com/plugins/MsCrmTools.UserSettingsUtility/

    pastedimage1614693681579v1.png

    Next, you can change the security of your users to prevent them from changing their personal settings, Make sure that you give Read privilege as shown below: 

    pastedimage1614693823508v2.png

    Result: 

    pastedimage1614693983305v3.png

  • Sandy Hello Profile Picture
    Sandy Hello 340 on at
    RE: Remove comma from whole number field using Java Script, this whole number is incremented and update to primary key text field on other entity as record id

    Thanks Vashti for your response, the above changes are valid for individual personal settings, i want the changes for whole instance

  • vashti hatami Profile Picture
    vashti hatami 40 on at
    RE: Remove comma from whole number field using Java Script, this whole number is incremented and update to primary key text field on other entity as record id

    hi

    go to administration -.> system setting ->

    after that do  according to pictures.

    3007.jpg

    6622.jpg

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans