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

down box to display a list of the items based on what was selected in another drop down box

Avatar

Level 1

I need help with making this work.  I have a form with two drop down boxes: Model and Options.  I need to display only those options that are available to the model's in the downdown list.  For example, Model  #123 has 3 options available of 1 Year, 2 Year, and 3 Year

but Model #456 has 2 options available of 3 Year and 4 Year.

How do I get the Options drop down box to display the correct avaliable options based on what was selected in the Model dropdown? 

I sure could use the help!  Thanks.

1 Reply

Avatar

Level 7

In the preOpen event of the second dropdown list you put something like (in formCalc):

if (dropdown1 == 1) then

$.clearItems()

$.setItems("Year, 2 Year,  3 Year")

elseif (dropdown1 == 2) then

$.clearItems()

$.setItems("3 Year,  4 Year")

endif