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

calculate for every CPU entered add a value

brennanhobart
Registered: Oct 9 2007
Posts: 37

The forms at [link=http://doit.missouri.edu/software/sales/autocad.pdf]http://doit.missouri.edu/software/sales/autocad.pdf[/link] I want to calculate for every CPU entered add a value. Here is a very similar script from the attached PDF Think I can use. I changed NumericField1 to CPU
 
var fields = xfa.resolveNodes("CPU [*]");

var total = 0;
for (var i=0; i

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The script didn't make it because of the lessthan symbol. However, this script is for a LiveCycle form. Is this how you are building the form? Since your form is so simple an AcroForm might be easier to work with.

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

brennanhobart
Registered: Oct 9 2007
Posts: 37
Tom, this is the script that worked. It was simple, thanks for the tips.

if (Page1.AutoCadCPU1 == Null) then $ = Null
else $ = 400
endif