Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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)
Copy link to clipboard
Copied
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!
Find more inspiration, events, and resources on the new Adobe Community
Explore Now