Acrobat User Community Forums

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

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

#1 2007-12-21 09:52:15

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

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

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

Offline

 

#2 2008-01-02 14:40:35

thomp
Member

Registered: 2007-04-23
Posts: 1027

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

ACCEPTED ANSWER

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.

Offline

 

#3 2008-01-09 09:40:17

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

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

Tom,

This was the script that worked. Thanks for the tips.

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

Offline

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

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

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