Acrobat User Community Forums

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

#1 2008-01-07 13:22:35

Birgit12
Member
Registered: 2008-01-07
Posts: 0

Forumla - Calculations

I'm using JavaScript. I've created boxes and named them a,b,c,d and e and used this formula for each one.

if(ALI.rawValue=".51"){a.rawValue="L";}
if(ALI.rawValue>=".75"){a.rawValue="MED";}
if(ALI.rawValue>=".86"){a.rawValue="H";}
if(ALI.rawValue>=".96"){a.rawValue="VH";}

Now I want box F formula to choose which box has the highest value, and then place that value in to box F.


My Product Information:
LiveCycle Designer Standard 7 / Windows

Offline

 

#2 2008-01-14 15:58:14

thomp
Member

Registered: 2007-04-23
Posts: 618

Re: Forumla - Calculations

Since you are using an XFA form there is an easy solution.  FormCalc has a built-in MAX fucntion.  Look it up in the formcalc documentation.  You'll find it here. 

http://kb.adobe.com/selfservice/viewCon … ;sliceId=1

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