dependent drop down menu items | Community
Skip to main content
Level 2
May 19, 2020
Solved

dependent drop down menu items

  • May 19, 2020
  • 1 reply
  • 3634 views

Is there a way to make individual values in a drop down unavailable once it is selected? 

 

Example:

  • I have 1 drop down list with names (Black Widow, Captain America, Hawkeye, Hulk, Iron Man, Thor) set on global.
  • This list shows up 5 times in 5 drop downs 
  • If 'Iron Man' is selected in the first drop down, it becomes unavailable in the following drop downs

This is just an simple example, and I know this could be done using a switch case, but in my actual requirement, I have roughly 100 items over 3 dozen drop downs, so that would not be something feasible. Is there something I can do?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Mayank_Gandhi

Probably use an array of items to set dropdown. On value change set the other dropdown to (array initial - element selected in DD[*]). Call this process on every dropdown change. So you would be maintaining an initial array and a subarray of all selected elements of the dropdown.

 

@wilsonl28824783 

1 reply

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
May 20, 2020

Probably use an array of items to set dropdown. On value change set the other dropdown to (array initial - element selected in DD[*]). Call this process on every dropdown change. So you would be maintaining an initial array and a subarray of all selected elements of the dropdown.

 

@wilsonl28824783