Skip to main content
laurag77630043
Participant
August 23, 2016
Question

GST calculation problem in Adobe Pro DC

  • August 23, 2016
  • 1 reply
  • 700 views

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

This topic has been closed for replies.

1 reply

Inspiring
August 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)

laurag77630043
Participant
August 23, 2016

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!