Skip to main content
teresef69
Known Participant
July 4, 2018
Besvarat

Simple Calculations - JavaScript

  • July 4, 2018
  • 5 svar
  • 1083 visningar

I need help to do a simple calculation in Java Script.

I have 3 columns on this fillable PDF Form.

(A) GST Exclusive   (B) + GST    (C) =Total

I need this calculation:

B = A x 0.1

C = B + A

Det här ämnet har stängts för svar.
Bästa svar av try67

You don't need JavaScript for this. Use the built-in Simple Field Notation option in the Calculate tab and enter the following:

Under B:

A * 0.1

Under C:

B + A

Make sure you do it in that order, or you would need to manually change the field calculation order later on.

5 svar

try67
Community Expert
try67Community ExpertSvar
Community Expert
July 4, 2018

You don't need JavaScript for this. Use the built-in Simple Field Notation option in the Calculate tab and enter the following:

Under B:

A * 0.1

Under C:

B + A

Make sure you do it in that order, or you would need to manually change the field calculation order later on.

teresef69
teresef69Skribent
Known Participant
July 5, 2018

Thankyou worked perfectly!

Ten A
Community Expert
Community Expert
July 4, 2018

Your post moved from Adobe Creative Cloud to JavaScript(Acrobat) forum.

John Waller
Community Expert
Community Expert
July 4, 2018

Which Adobe software app are you using?

teresef69
teresef69Skribent
Known Participant
July 4, 2018

I am using Adobe Acrobat Pro.

Thanks