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

calculate in acrobat pro

Duinstruiner
Registered: Jan 8 2008
Posts: 2

I need to create forms that calculate.. ie number of boxes after choosing options. calculate costs when item a , c and e are chosen..
does anybody have an example?

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4308
Since Acrobat 8 can create forms in the AcroForm format or LiveCycle Designer (XML format) and each has it owns syntax for JavaScript and LiveCycle Designer also provides the FormCalc language the answer will depend on your design choices.

In theory you can set the "export" value of the check boxes which can be summed, but if you use AcroForms you will have to provide code to test the check boxes for not being checked, a value of "Off". LiveCycle Designer allows for the setting of a value for checked and unchecked states, so if you set the unchecked state to zero and the the checked state for the appropriate value you only need to sum the check boxes.

George Kaiser

tedpadova
ExpertTeam
Registered: Dec 31 2005
Posts: 848
Take a look at the eBook 101FormseTips.pdf I uploaded to Acrobat Users. You'll find a link on the home page. The document contains many calculation scripts if you choose to go the AcroForms route.

ted

The author of numerous books on Acrobat, Photoshop, Illustrator and the Adobe Creative Suite, and an international speaker on Adobe Acrobat, Ted Padova is a well-known PDF guru.