Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-12-24 10:39:24

brennanhobart
Member
Registered: 2007-12-12
Posts: 9

calculate for every CPU entered add a value

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 Standard 8.1 / Windows

Offline

 

#2 2008-01-02 15:00:21

thomp
Member

Registered: 2007-04-23
Posts: 723

Re: calculate for every CPU entered add a value

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.

Offline

 

#3 2008-01-09 09:39:23

brennanhobart
Member
Registered: 2007-12-12
Posts: 9

Re: calculate for every CPU entered add a value

Tom, this is the script that worked. It was simple, thanks for the tips.

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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in