web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Remove comma from specific whole number field

(0) ShareShare
ReportReport
Posted on by

I have tried using the below suggestion :https://stackoverflow.com/questions/30161583/crm-2013-to-remove-comma-from-whole-number-field but the onchange event is not working. kindly let me know if there are any other options

*This post is locked for comments

  • ScottDurow Profile Picture
    25 on at

    Hi,

    Are you using the text field approach? So copying the value from the number field to the text field and back?

    If so could you post your code? Also make sure you register the on change event in the form attribute and publish the changes.

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi Divya,

    I think this is only the supported approach by which you can do this.

    Here is some step you can also  follow below steps .

    > let's say you have two field new_wholenumber and new_text in your form

    > Make display none by double clicking the field new_wholenumber.

    > Register below function on change of the text field which enable to any change in the text to assign to the whole Number.

    function OnchangeTextField(){

      var stringValue = Xrm.Page.getAttribute("new_text").getValue();

    Xrm.Page.getAttribute("new_wholenumber").setValue(stringValue);

    }

    >  Dynamics 365 support onkeypress so using this method you can  Restrict only numbers in the new_text field.

    Here is the reference you need to just add the function on the onload method.

    mahadeomatre.blogspot.in/.../keypress-methods-in-ms-crm-2016.html

    Hope this helps

  • Suggested answer
    Jagannath Profile Picture
    545 on at

    Hi Divya,

    Check with different different browsers.

    Sometimes may be browser issue.

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
ScottDurow Profile Picture

ScottDurow 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans