Hi - I'm very new to form creation and this forum so apologies if this question is elsewhere.
I've been jumping in and out of discussions trying to take suggested code to questions regarding similar topics and just tweaking the code to suit my field names.
I have the following fields
Quantity / Product / Unit Price / Discount / Price
Below these on my form I have
SubTotal / VAT / Total
Currently I have set the PDF form set up to accurately calculate a sub total. This is using the presets from Properties > Calculate.
I cannot for the life of me work how to make my 'SubTotal / VAT / Total' fields work together.
As it stands I have The Sub Total and the Total displaying a calculation (the Total field currently is set to add together the Sub Total and VAT - as I do not know how to make the VAT "work" if you like the Sub Total and Total fields are displaying the same figure.
Please, please help - I just can't figure this out.
I'm using Acrobat Pro 9 (CS4) on a Mac
Code I am using is...
event.value = 0.17 * this.getField("SubTotal").value;
Any clues as to how I can include the .5?