Form design dropdown logic

Hey all.

We have 2 drop down fields. When the user selects a value in drop down 1. Drop down 2 must only select the values that is linked to the value selected in drop down 1. There is a linking component that you can do for the matching. The issue I am having is that those drop down fields have multiple values enabled. For drop down 1 you can select 2 values but when you check drop down 2. No values are displaying. How can I get it to display the values of drop down drop down 1 2 values that was selected to show in drop down 2?

@Etienne4711

Ideally you can do with events and set form values activity

Cheers

Thanks for the response @Anil_G
What is the activity names for the events?
Do you have like a video I can check out or screenshots?

@Etienne4711

events trigger

set values

cheers

Hi @Etienne4711 ,

Define a trigger for Dropdown1 value changed

Get current values of DD1 as a list variable - Get Form Value

Build a datatable for the dropdown options:

DropDown1 DropDown2
Fruit Apple
Fruit Banana
Fruit Strawberry
Protein Egg
Protein Beef
Drink Water
Drink Redbull
Carb Pasta
Carb Bread

For each item in the DD1 list var, find matching values in the DT DD2 and write to a list

Use the Set Form Value activity and set the list to DD2