Answered
I don't know javascript which I guess I have to use to do subtraction. How do I subtract one field from another and populate the required result into a total field?
Maybe this is stupid but in my javascript window I just typed this:
Surplus_Deficit = Total Net Income - Total Expenses;
Those are my field names.
Any help would be appreciated.
FormCalc calculation:
TotalNetIncome - TotalExpenses;
JavaScript calculation:
$.rawValue = TotalNetIncome.rawValue - TotalExpenses.rawValue;
With Acrobat FormTool form JavaScript:
event.value = this.getField("Total Net Income").value - this.getField("Total Expenses").value
George Kaiser