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

Forumla - Calculations

Birgit12
Registered: Jan 7 2008
Posts: 2

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, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
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.

[url=http://kb.adobe.com/selfservice/viewContent.do?externalId=330467&sliceId=1]http://kb.adobe.com/selfservice/viewContent.do?externalId=330467&sliceId=1[/url]

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