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

FormCalc for adding 2 varibles together and posting result.

dk3dknight
Registered: Jan 22 2008
Posts: 136
Answered

Question.

What would the formcalc be for adding in example var3 = var2 +var1?

I would want var3 to be lets say a text box, and var 2 and 1 will also be a text box.

Im guessing you would not be using a if statement.

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
First, look at the documentation under the "Help" menu bar option. There is a "Scripting Reference" otpion, please look at this material. Then look at the samples provided with Acrobat or create forms from some of the standard templates and look at the fields especially their properites and scripts.

The formula in FormCalc is:

var2 + var3

But the fields have to be numeric.

George Kaiser

dk3dknight
Registered: Jan 22 2008
Posts: 136
Amazing I feel dumb now thank you,
I had read the scripting references and
from the tutorials had already figured out
to do something like if blah = blah then blah
else blah...

but calculation had escaped me.

Hitting show calculate Var1+Var2 was the ticket,
I thought it would have been something extremely
complicated.

Thank You again.