Skip to main content
mrsenos08
New Participant
January 8, 2019
Answered

Multiplying a form field by a specific number.

  • January 8, 2019
  • 3 replies
  • 17257 views

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!

Correct answer try67

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

Volume * 0.03

3 replies

JR Boulay
Adobe Expert
February 12, 2025

[MOVED TO THE ACROBAT DISCUSSIONS]

Acrobate du PDF, InDesigner et Photoshopographe
New Participant
February 5, 2025

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.

try67
try67Correct answer
Adobe Expert
February 5, 2025

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

Volume * 0.03

New Participant
February 5, 2025

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!!

try67
Adobe Expert
January 8, 2019

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

mrsenos08
mrsenos08Author
New Participant
January 8, 2019

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