Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
Expand all | Collapse all

Disabling the thousand separator in numeric fields

  • 1.  Disabling the thousand separator in numeric fields

    Posted Mon September 12, 2022 07:17 AM

    Hi,

    How can I disable , in entry template, the thousand separator in numeric fields?

    I can't found the answer anywhere

    Thanks,

    Noam



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration


  • 2.  RE: Disabling the thousand separator in numeric fields

    Posted Tue September 13, 2022 12:22 PM

    Create a custom JavaScript class that inherits from ecm.model.ValueFormatter

    Override the ValueFormatter.formatValue method to customize the format for numerical values and return this.inherited(arguments) for anything else

    Assign the custom ValueFormatter to the Desktop model in the plug-in's main JavaScript file, i.e., ecm.model.desktop.valueFormatter = new CustomValueFormatter();



    #IBMContentNavigator(ICN)
    #Support
    #SupportMigration