Participant
July 12, 2024
Answered
Calculating order form total column using Javascript
- July 12, 2024
- 1 reply
- 741 views
Hi
Apologies, I know nothing about Javascript.
I have an order form in Acrobat that I need to calculate a total with Goods and Services Tax (GST) attached image.
Staff members enter quantity (QTY) and unit price (UNITPRICE). They then choose Y or N to whether the unit price is inclusive of GST.
So, therefore the TOTAL column needs to calculate
If GST = Y
Then multiply QTY by UNITPRICE
Else multiply QTY by (UNITPRICE*1.1)
I know that I need to use javascript with a IF and THEN statements in the 'Custom Calculation Script' section, just not sure how to script it.
Thanks
Michael
