I want to 'Switch' the options available in a Dropdown depending on the content of the same Dropdown.
Dropdown (In Gallery1) -
Default: ThisItem.Color (populated default is "Blue").
Items: ["Blue","Red","Green"]
Switch Action Required: If Dropdown equals "Blue" list choices are "Blue","Red","Green"
If Dropdown equals "Red" choice is "Green"
If Dropdown equals "Green" choice is "Red"
Current Switch Statement I'm trying in Dropdown 'OnChange'. However, when I choose an item on the list the options do not change in accordance with my switch.
At this point the default content of Dropdown1 is "Blue" - I click 'OnChange' in which in which is the following -
Switch(Dropdown1.SelectedText.Value,
"Blue"
[{Value: "Blue"}, {Value: "Red"}, {Value: "Green"},
"Red"
{Value: "Green"},
"Green"
{Value: "Red"})