Number format of ConstantSum | XM Community
Skip to main content
Solved

Number format of ConstantSum

  • December 18, 2021
  • 2 replies
  • 10 views

Forum|alt.badge.img

Hi,
Does anyone know how to make the total amount displayed when using ConstantSum not have a thousand separator?
I need: 1000 (one thousand)
Instead of: 1,000/1.000/1000.00/1000,00 (one thousand)
Thanks a lot!

Best answer by rondev

We can use the below code for this:
 jQuery(".SumTotal .InputText").on("input", function() { this.value = this.value.replace(/[^0-9]/g,""); });

2 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • Answer
  • December 24, 2021

We can use the below code for this:
 jQuery(".SumTotal .InputText").on("input", function() { this.value = this.value.replace(/[^0-9]/g,""); });


Forum|alt.badge.img
  • Author
  • December 25, 2021

Thanks Ron!