How to set up full local currency?

Hi Gliders,

I use Glide tables and would like to set up the numbers with full local currency, not only currency symbol. For IDR/Indonesian Rupiah, the numbers use point as group separator, not comma (orange box on an image below). My client insist to use the right format of our local currency.

Does anyone know how to set up the numbers? Thanks in advance.

You can use JavaScript to convert the number to local

1 Like

JavaScript?! Oh, no… I’m just a no-code developer… :grinning:

Thanks for your quick response @Uzo :pray:

a little bit of Java will not hurt you :wink:

1 Like
if(p1){
let rupee = new Intl.NumberFormat('en-IN', {
    style: 'currency',
    currency: 'INR',
});
var price = p1;
return('Rupees: ' + rupee.format(price));
}
2 Likes

Thanks @Uzo… Do I use this JavaScript on Code column?

yes… JavaScript column… put your price as p1 variable

you can take out 'Rupees: ’ +
from return if you want just price

2 Likes

I’m using Indonesian Rupiah, not Indian Rupee. But, it’s done and thanks again @Uzo :+1: :+1:

2 Likes

I hope you will start loving Java :wink:

1 Like

I hope so. Actually, I just copied and made a little modification only :grinning: :ok_hand:

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.