1000 separator for French numbers
I am working on a French form that has a table with several $ fields. The options for number formatting doesn't include the space as a 1000 separator, but it includes the comma as a decimal. Is there a way to get that 1000 separator (space)?
I found this script on another website:
var x = Number(event.value).toFixed(2);
event.value = x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, " "); // use space as thousand separator
But that script keeps showing up as 1,#R if I put "1000", but the actual number will show up if I click on the text field "1 000,00"
Can someone please help?
