Click to See Complete Forum and Search --> : JavaScript Editor


ShellFish
04-24-2003, 06:48 PM
I am creating a form in .pdf format (using Acrobat Reader 5.0)

I have a field, which is the total of 6 other fields, named TotalCharges

I have another field, which dollar amounts are manually entered, named AmountPaid

I have a third field named BalanceDue . This field should subtract AmountPaid from TotalCharges and return with the difference.

Adobe Acrobat Reader 5.0 uses JavaScript Editor to create calculations. In the "Value is [sum (+)]..." area it will not allow me to create a subtraction calc and so I try to use the "Custom Creation Calculation" and no matter what I do, it comes back to me with RefferenceErrors.

This is one script I have tried:
BalanceDue = TotalCharges - AmountPaid

Do you have any suggestions?