Skip to main content
Participating Frequently
June 13, 2022
Answered

How to Properly use the Percentage In PDF Form

  • June 13, 2022
  • 1 reply
  • 763 views

Formatting a text box to percentage is multiplying the value by 100.How to avoid that so that when I enter 5 it will be 5% not 500% in PDF Forms.

 

Format Changed to Percentage

 

Entering 5 is now 500%.

 

Can someone help me to solve this issue..

Thanks

This topic has been closed for replies.
Correct answer Nesa Nurani

As validation script use this:

if(event.value)
event.value = event.value/100;

1 reply

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
June 14, 2022

As validation script use this:

if(event.value)
event.value = event.value/100;

Sibi MGAuthor
Participating Frequently
June 14, 2022

Hi @Nesa Nurani  ..I am just wondering what is if(event.value) doing in this code?

Nesa Nurani
Community Expert
Community Expert
June 14, 2022

That means if field has value, it will trigger script, you can remove that part if you wish.