Standard formatting with decimal places | XM Community
Skip to main content
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.
You can do this in JS with a blur event and toFixed function.

Leave a Reply