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

rawValue has multiple choices

Gillian
Registered: Jul 10 2007
Posts: 63
Answered

I created a list and had LCD specify values for it. Many choices on the list should have the same results displayed.
 
The rawValue function works if their is only one choice (i.e. this.rawValue == 6)
 
I want something like,
 
if (this.rawValue == 2 , 3 , 8 , 21)
 
where the commas mean "or" so if the User picks 2, 3, 8, or 22 they get the same display results.
 
Is that possible? If so, what is the proper syntax.
 
Thanks,
Gillian

-Gillian

My Product Information:
LiveCycle Designer, Windows
Bamboolian
Registered: Jul 27 2010
Posts: 48
Accepted Answer
Hi,

You should follow normal javascript syntax.
AND condition : '&&'
OR condition : '||'

so do like,

if ((this.rawValue == 2 ) || (this.rawValue == 3 ) || (this.rawValue == 8) || (this.rawValue == 21)){

Gillian
Registered: Jul 10 2007
Posts: 63
Thanks! Appreciate the answer.

-Gillian