Skip to main content
mrsenos08
Participant
Jan 8, 2019 7:36 PM UTC
Answered

Multiplying a form field by a specific number.

How do I multiply a numerical form field by a specific number that is not in a form field?  I have absolutely no experience with Javascript.  Please HELP!

try67
try67Correct answer
Community Expert
Feb 5, 2025 5:58 PM UTC

Under the Simple Field Notation option in the Calculate tab of Fees enter this:

Volume * 0.03

9 replies

JR Boulay
Community Expert
Community Expert
Feb 12, 2025 10:02 AM UTC

[MOVED TO THE ACROBAT DISCUSSIONS]

Translate
Acrobate du PDF, InDesigner et Photoshopographe
Participant
Feb 5, 2025 5:06 PM UTC

I was wondering if I could get a little help, cause I can't seem to figure this out.  I have a field where I will enter volume and need it to calculate the fee.  See attached screen shot.

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Feb 5, 2025 5:58 PM UTC

Under the Simple Field Notation option in the Calculate tab of Fees enter this:

Volume * 0.03

Translate
Participant
Feb 5, 2025 6:07 PM UTC

Worked!! Thank you so much!  I didn't put any spaces between them and so it wasn't working, works like a charm now!  You rock!!

Translate
try67
Community Expert
Community Expert
Jan 8, 2019 7:58 PM UTC

Let's say the first field is called Text1 and you want to multiply its value by 8 and show the result in Text2.

You can do it using this code as the custom calculation script of Text2:

event.value = Number(this.getField("Text1").valueAsString) * 8;

Also, see this tutorial: https://acrobatusers.com/tutorials/how-to-do-not-so-simple-form-calculations

Translate
mrsenos08
mrsenos08Author
Participant
Jan 8, 2019 8:01 PM UTC

THANK YOU THANK YOU THANK YOU!  I appreciate it so much.

Translate