Standard formatting with decimal places | XM Community
Question

Standard formatting with decimal places

  • 4 November 2019
  • 1 reply
  • 60 views

Userlevel 7
Badge +6
Is there a way to make the numeric entry for a question to display with 2 trailing decimal places, even if the initial input doesn't have a decimal?

Example:
Someone enters 2 in a question, I want the output to be 2.00.

Rational:
I want to display the entered values as standard currency ($2.00), but not force the survey taker to put in .00 for each whole dollar.

I tried using the rounding math operation, but it won't include the extra 00's.

1 reply

Userlevel 7
Badge +27
You can do this in JS with a blur event and toFixed function.

Leave a Reply