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

GST calculation problem in Adobe Pro DC

New Here ,
Aug 22, 2016 Aug 22, 2016

I need to calculate 10% of a sub total price (for 10% GST), I'm working in a table, and I have calculated everything else above it to work with each other, now I just need 10% of that subtotal price to calculate itself. I have change the follow order of the fields in set field calculation order. I use Adobe Pro DC.

Used formula in Custom Calculation script:

var f = this.getField("subtotal ex GST");

event.value = f.value * 0.10;

Subtotal is working and total is working as well. Just not the GST part.

Thanks guys

TOPICS
Acrobat SDK and JavaScript , Windows
623
Translate
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
LEGEND ,
Aug 23, 2016 Aug 23, 2016

According to your screen shot, the field name is "SUBTOTAL ex GST", not "subtotal ex GST" as shown in your script. It's a good idea to configure the JavaScript console (Ctrl+J) to be displayed on errors (Edit > Preferences > JavaScript > Show console on errors and messages)

Translate
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 ,
Aug 23, 2016 Aug 23, 2016
LATEST

Hi George,

There was no error according to Java. But I figured out the filed name so fixed it straight away after sending this! Thanks for your help though!

Translate
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