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

I need to calculate if a field has a CPU number entered(or if anything is entered)add $400.00 in the sub total.

brennanhobart
Registered: Oct 9 2007
Posts: 37
Answered

Here is a tough one: I need to calculate if a field has a CPU number entered(or if anything is entered)add $400.00 in the sub total. Then I'll have a second table that needs the same thing, if a CPU is entered, add $200 to that sub total. I know how to create calculated fields but this one has me because we are calculating orders for an AutoCAD and MAX order forms. Any suggestions? Thanks, you all have been great help.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
In Acrobat and LiveCycle Forms JavaScript is used to do more complex sorts of calculations. It sounds like you need to use a simple if statement in your form. That is of course assuming that you are in fact using an Acrobat or LiveCycle form, it's not clear from your post. If you are not using one of these form types they you are on the wrong forum. Please explain more.

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 was the script that worked. Thanks for the tips.

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