First of all, I haven't posted often to these forums, so I'll try to be clear about what I'm looking for, and if I've neglected to include any important information, please bear with me.
I am trying to create a pdf form to be used in my veterinary practice that serves as an invoice. When it comes to calculating the total amount due on the invoice, I was hoping to be able to include a line for a discount value based on the selection in an adjacent combo box. The selections would be blank (for no discount), 10%, or 15%. If the 10% or 15% values are selected, I'd like the field to calculate that discount by multiplying the subtotal by the correct discount percentage. This discount would be displayed in the field, then the next field down would subtract the discount from the subtotal to give a final amount due.
I am using Acrobat Pro, version 9.
Any help would be greatly appreciated.
You can set this up using simplified field notation. An item in a dropdown cannot be blank. but it can be a single space or dash, and you can set the export value to zero. Set the export values or the 10% and 15% items to .1 and .15, respectively.
If the field names for the subtotal and discount percentage amounts are "subtotal" and "disc_pct", the simplified field notation for the field that calculates the discount would be:
subtotal * disc_pct
Then in the amount due field, you could do:
subtotal - discount
where "discount" is the name of the field that calculates the discount.
Thank you very much for the information. I think that's got me headed in the right direction.