Skip to main content
cmmm55401215
Participant
April 23, 2019
Answered

I need to change the decimal placement in the percentage field.

  • April 23, 2019
  • 1 reply
  • 887 views

I have a percentage field where the decimal place needs to be moved. When you type in 20 the decimal place value shows 2000% (i.e. 20x100%). You have to type in .20 to get the field to show 20%. That doesn't flow well with this form, where the rest of the percentages are represented as numbers with 2 decimal places (20.00).

Does anyone have the code to fix this?

This topic has been closed for replies.
Correct answer try67

Then don't use a Percentage field, because that's how it works.

Use a regular text field with the following code as the custom Format script:

if (event.value) event.value += "%";

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
April 23, 2019

Then don't use a Percentage field, because that's how it works.

Use a regular text field with the following code as the custom Format script:

if (event.value) event.value += "%";