Expand my Community achievements bar.

SOLVED

if statement to change the items in a dropdown list

Avatar

Level 7

Is there a way to change the options of a dropdown list through scripting (without data binding)? So I have one dropdown list and depending on what the user chooses the second dropdown list will have different options. Can these items be specified through an if statement in the preOpen event of the second dropdown list? The form will be filled out offline so I don't want to put in a data binding link.

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

There are at least a couple of ways, as mentioned in http://forums.adobe.com/message/4321707#4321707.  Basically clearItems/addItem if supporting Reader pre 9.0 or setItems if using Reader 9.0 or later.

Bruce

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

There are at least a couple of ways, as mentioned in http://forums.adobe.com/message/4321707#4321707.  Basically clearItems/addItem if supporting Reader pre 9.0 or setItems if using Reader 9.0 or later.

Bruce

Avatar

Level 7

Thanks so much for replying so fast. I knew it would be something easy once you know how!