Skip to main content
teresef69
Known Participant
Jul 4, 2018 1:16 AM UTC
Answered

Simple Calculations - JavaScript

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 is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Jul 4, 2018 8:32 AM UTC

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 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Jul 4, 2018 8:32 AM UTC

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.

Translate
teresef69
teresef69Author
Known Participant
Jul 5, 2018 12:13 AM UTC

Thankyou worked perfectly!

Translate
Ten A
Community Expert
Community Expert
Jul 4, 2018 2:51 AM UTC

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

Translate
John Waller
Community Expert
Community Expert
Jul 4, 2018 1:22 AM UTC

Which Adobe software app are you using?

Translate
teresef69
teresef69Author
Known Participant
Jul 4, 2018 11:50 PM UTC

I am using Adobe Acrobat Pro.

Thanks

Translate