These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Simple, Simple, SIMPLE calulations - please help!

dagolola
Registered: Apr 11 2007
Posts: 2

I am using Professional 7.0 and Designer for the first time. I'm an avid Excel user and trying to convert to PDF forms. I am trying to create calculations (simple addition/subtraction/multiplication) and am having the worst time figuring it out. I have searched on here, Google and read the instructions and it's like reading Greek. I have a form where I have sub-total and total boxes. I need to pull the figures from another text/numeric field on the page to create the totals. How is the simple way to do this???

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
FormCalc is the answer. In the simplest case, where all the fields at the same hierarchy level, you simply reference the field names in the calc. For example, for 3 fields "Arg1", "Arg2", and "Sum". Where "Sum" is the result of "Arg1" plus "Arg2".

1. Select the "Sum" field with the mouse.
2. From the "Windows" menu select the "Scripting" window.
3. On the "Scripting" window select "Calculation" from the "Show" pulldown and make sure that "FormCalc" is selected for the language.
4. Enter the following code into the scripting window:

Arg1 + Arg2


That's it.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script