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

XML mulitple value script

Safeone
Registered: Dec 21 2009
Posts: 1

Presently I am trying to figure out a task.

I am looking to use muitiple values to initiate an action.

ie Check box
if(this.rawValue == 1)
Infopg3.infoa4.presence = "visible";
else
Infopg3.infoa4.presence = "hidden";
 
xfa.layout.relayout();

However I am looking for a direction on using the check box to read a field in a drop down menu to initiate a "visible" task.

Any thoughts ??

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Sounds like you need a compound conditional, combining the value from the check box with the value from the dropdown.

See this article:
http://acrobatusers.com/tutorials/conditional-execution

The samples are for an AcroForm, but the logic is the same for all scripting.

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