You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to add decimal converter for oj-input text in VBCS?

edited Dec 9, 2019 12:34PM in Visual Builder 5 comments

Content

Hi all,

I need comma separator in input text field i.e (48,987,987). I have tried below code in VBCS page but it shows error

converter="{{ $page.functions.numericConverter($variables.Number) }}"

JS: 
PageModule.prototype.numericConverters= function(){
   var converter = new NumberConverter.IntlNumberConverter({
          maximumFractionDigits: 0,
          minimumFractionDigits: 0,
          minimumIntegerDigits: 2,
          style: 'decimal',
          useGrouping: true
        });
      };

Regards

Shakila Murugan

 

Version

19.1.3

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!