Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Drop-down lists

Avatar

Level 2

My situation, I have 2 dropdown lists on a form. Let's say dropdown #1 contains 4 options. I want dropdown #2 to give me a specific set of items to choose from depending on my choice in dropdown #1.

Any help is much appreciated.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Yes, exactly the same process. Copy the script from 1 into 2 and amend the references (or duplicate the first drop down and amend the references).

You may want to add in an extra line of javascript in the first drop down object, which would also clear any previously selected choice in dropdown3. 

Good luck,

N.

View solution in original post

0 Replies
This widget could not be displayed.

Avatar

Level 10

Avatar

Level 10

Hi,

There is javascript for drop down lists .clearItems(); and .addItem("a choice");

The sample shows an example of this in the change event of the dropDown1.

Hope that helps,

N.

Hi,

There is javascript for drop down lists .clearItems(); and .addItem("a choice");

The sample shows an example of this in the change event of the dropDown1.

Hope that helps,

N.

Avatar

Correct answer by
Level 10

Avatar

Correct answer by
Level 10

Yes, exactly the same process. Copy the script from 1 into 2 and amend the references (or duplicate the first drop down and amend the references).

You may want to add in an extra line of javascript in the first drop down object, which would also clear any previously selected choice in dropdown3. 

Good luck,

N.

Yes, exactly the same process. Copy the script from 1 into 2 and amend the references (or duplicate the first drop down and amend the references).

You may want to add in an extra line of javascript in the first drop down object, which would also clear any previously selected choice in dropdown3. 

Good luck,

N.