You can achieve this by using a collection and filtering the second dropdown based on the first dropdown selection.
For Example:
Sample collection:
ClearCollect(
colCards,
{A:"Card1G", B:"SFP1G_1"},
{A:"Card1G", B:"SFP1G_2"},
{A:"Card1G", B:"SFP1G_3"},
{A:"Card10G", B:"SFP10G_1"},
{A:"Card10G", B:"SFP10G_2"},
{A:"Card10G", B:"SFP10G_3"},
{A:"Card25G", B:"SFP25G_1"},
{A:"Card25G", B:"SFP25G_2"},
{A:"Card35G", B:"SFP1G_5"}
)
First combobox items property code: (Assuming this Combobox control name is: A_Combobox)
Distinct(colCards, A)
Second combobox item property code
Distinct(
Filter(
colCards,
IsBlank(A_Combobox.Selected.Value) ||
Substitute(A_Combobox.Selected.Value, "Card", "") in B
),
B
)
---------------------------------------------------------------------------
Glad it helped 🙂
If this fixed your issue, please click “Does this answer your question?” to mark it as verified so others can find the solution easily.
A Like 👍 is always appreciated, and I’m around if you need more help @Kalathiya