I am not a programmer. I am trying to automate some forms to a Financial Statement by adding form fields. Pretty easy basic stuff.
I get how to use the Calculate Tab to ADD fields.
Now I am at the step that I need to calculate Net_Worth = Total_Assets - Total Liabilities.
Basic subtraction . . . . one field minus another field. 5 seconds to do in Excel. Impossible (for me) in Acrobat.
Can someone please show me a simple Calculation or JavaScript to do basic subtraction in Acrobat forms?
I have looked for some examples online but can't get the right syntax to make it work.
I have tried this in Simplified Field Notation:
NetWorth.rawValue = Total_Assets.rawValue - TotalLiabilities.rawValue
That doesn't do anything . . . so . . .
I have tried this in JavaScript which I adapted from here (http://www.acrobatusers.com/tutorials/2006/scripts_form_fields/):
event.value=this.getField("Total_Assets") - this.getField("TotalLiabilities");
But is doesn't work either.
Seems like the simplest thing that it should be easy to find another example or tutorial to watch or copy or find documented in the manual, but alas after two hours I gave up and posted here.
Thanks
You'll find some calculations examples inside.
--> http://www.acrobatusers.com/blogs/tedpadova/101-forms-etips
abracadabraPDF.net