Hi I would like to cascade my dropdowns using conditions. Previously, I was able to do it with switch function. On my drpCountry dropdown, when I select a country, drpAvailable will show "No" automatically. Now, I added all the list of countries on my SharePoint list. All countries availability (drpAvailable) except for US is automatically (DefaultSelectedItems) set to No. When I select US in drpCountry, I should still be able to modify the drpAvailable to Yes or No.
Below is the code I've used before using the switch function
Switch(
drpCountry.Selected.Value,
"GB",
{Value: "No"},
"AU",
{Value: "No"},
"CA",
{Value: "No"},
"SA",
{Value: "No"},
"UAE",
{Value: "No"}
)