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

Simple Calculations - JavaScript

  • July 4, 2018
  • 3 replies
  • 1063 views

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

This topic has been closed for replies.
Correct answer 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.

3 replies

try67
Community Expert
try67Community ExpertCorrect answer
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
teresef69Author
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
teresef69Author
Known Participant
July 4, 2018

I am using Adobe Acrobat Pro.

Thanks