• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

633

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

Community Expert , 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.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.

Votes

Translate

Translate
Community Expert ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

Which Adobe software app are you using?

Votes

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

Votes

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
Community Expert ,
Jul 03, 2018 Jul 03, 2018

Copy link to clipboard

Copied

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

Votes

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
Community Expert ,
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.

Votes

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!

Votes

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