Change Currency Format

Comments

1 comment

  • Avatar
    Aravind Rajanna

    Hello Juan,

    To achieve your requirement, here is a sample code to change the currency format, call this JavaScript event on “Blur”.

    Please refer to below article for your reference.

    https://medium.com/@samanthaming/format-currency-in-es6-with-intl-numberformat-f07e9b6321f9

     

    function currency()

    {

      const number = $("#Currency1").val(); // Provide your currency Control internal id

     var currencyvalue = new Intl.NumberFormat('de-DE',  {

      style: 'currency',

      currency: 'EUR',

       minimumFractionDigits: 2,

    }).format(number);

     $("#Currency1").val(currencyvalue); //Provide your currency Control internal id

    }

    Regards,

    Aravind

    0
    Comment actions Permalink

Please sign in to leave a comment.