Dropdown 1 shows a list of Teams and dropdown 2 shows a list of Team members
The usual process is to select a Team in dropdown 1, and then dropdown 2 will only show the Team Members of that Team. However, if you don't select anything on dropdown 1, dropdown 2 will show all the team members of all teams.
I would like these dropdowns to work like this too:
If the users selects first the Team member in dropdown2 , dropdown 1 will automatically show the Team Name of that user.
does that make sense? how can I make this possible? any ideas?
This is not what I needed, sorry. In your example there is only one dependency.
you use Dropdown 2 first and then Dropdown 1 gets populated.
I want to do this:
Select something from Dropdown1 and then dropdown2 changes the available options.
Then start again, refresh the dashboard and now do this:
Select something from Dropdown2 and then dropdown1 changes the selected option (or default option).
Let's say Dropdown 1 has this: All teams, Team A, Team B
and dropdown 2 has these: Pete (Team A), John (Team A), Douglas (Team B)
If the user selects the team first, the second dropdown shows only the users of that team, but it the user selects the user first, then dropdown1 will automatically show as selected the team the user belongs too