These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Caculating a percentage

katymcdonald
Registered: Nov 6 2008
Posts: 1

I created a form that ask the trainer for a certain %. All I want them to do is put in a whole number and field shows that it is a %.
Example: Type in 12 and the field shows 12% rather than 1200%. Can someone help me with a script that could accomplish tthis? Thank you

My Product Information:
Acrobat Pro 8.1, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
This is the way the application functions and changing it after all these years could cause problems with established users.

You could write custom keystroke, format, and calculation scirpt to allow for the inclusion of the "%", Or you can use "event.value = event.value * .01;' as a custom validataion script, but if the user goes back to update the value, the user will see the entry 1/100th of the entered value which could be more confusing.

George Kaiser

hoangta8
Registered: Nov 28 2007
Posts: 8
Check out this thread. Hope this would help:

HT
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=15616
jaynefergs
Registered: Nov 11 2008
Posts: 37
I need a simple percentage calculation: what percent of a total.
I am also confused on how to get the percentage to show correctly.
Example: I have a total of one thing- divided by another total = percentage
In the field box I want it to display (i.e., 10%)