Skip to main content
Participating Frequently
Jun 13, 2022 10:59 PM UTC
Answered

How to Properly use the Percentage In PDF Form

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 is closed to new replies. Start a new post to keep the conversation going.
Nesa Nurani
Nesa NuraniCorrect answer
Community Expert
Jun 14, 2022 7:02 AM UTC

As validation script use this:

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

3 replies

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
Jun 14, 2022 7:02 AM UTC

As validation script use this:

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

Translate
Sibi MGAuthor
Participating Frequently
Jun 14, 2022 3:11 PM UTC

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

Translate
Nesa Nurani
Community Expert
Community Expert
Jun 14, 2022 3:30 PM UTC

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

Translate