Simple Calculations - JavaScript

New Here ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

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

TOPICS
Acrobat SDK and JavaScript

Views

263

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct Answer

Most Valuable Participant , Jul 04, 2018 Jul 04, 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.1Under C:B + AMake sure you do it in that order, or you would need to manually change the field calculation order later on.

Likes

Translate

Translate
Adobe Community Professional ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

Which Adobe software app are you using?

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

I am using Adobe Acrobat Pro.

Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Most Valuable Participant ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 04, 2018 Jul 04, 2018

Copy link to clipboard

Copied

LATEST

Thankyou worked perfectly!

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines