Currency format
Posted by TWendt - Mar 10 ’17 at 03:08
Hello,
i have a javascript that calculate the hardware costs and put the result in a field where the format is Euro currency. But the result is 1000. But i need would display as a decimal number (1.000). Is this possible?
//Calculate Hardware
var total = 0;
var rows = fd.relatedItems(4).data('ctx').ListData.Row;
rows.forEach(function(item) {
total += parseFloat(item['Kosten.'])
});
fd.field('Kosten_x0020_Hardware_x0020_Gesa').value(total);
Best regards
Tom
-
Dmitry KozlovAdminMember for: 6 years 2 months 20 days
Hi Tom,
You can try a number formatting plug-in. Say, this one:
https://github.com/customd/jquery-number
Please, ask future questions in our new forum:
Displaying 1 to 1 of 1 messages