cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SOL24
Frequent Visitor

Multiple choice dropdown select multiple items depending on another multiple choice field too

Hi,

How do I make a multiple choice dropdown select several Items depending on another multiple choice field?

Example:

I have the Dropdown1 with the following values:

 

Planning - values

Planning - market

Planning - sales

Execution - Data

Execution - Risks

Marketing - social

Marketing - Enviroment 

 

I need the Dropdown # 2 called Result to show the following:

1. If in dropdown 1 select:
Planning - market           and

Marketing - social

 

Only show in dropdown # 2:

 

Planning
Marketing

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @SOL24 ,

 

According to your description, I've made a test for your reference:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

["Planning - values","Planning - market","Planning - sales","Execution - Data","Execution - Risks","Marketing - social","Marketing - Enviroment"]

 

Set 'ComboBox1' 's Onchange property to:

ClearCollect(Test,{Value:""});Clear(Test);If(Or("Planning - values" in ComboBox1.SelectedItems.Value,"Planning - market" in ComboBox1.SelectedItems.Value,"Planning - sales" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Planning"}));If(Or("Execution - Data" in ComboBox1.SelectedItems.Value,"Execution - Risks" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Execution"}));If(Or("Marketing - social" in ComboBox1.SelectedItems.Value,"Marketing - Enviroment" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Marketing"}));Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

["Planning","Execution","Marketing"]

 

Set 'ComboBox2' 's DefaultSelectedItems property to:

Test

 

3\ The result is as follows:

AAA.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @SOL24 ,

 

According to your description, I've made a test for your reference:

1\ Add a combo box control 'ComboBox1' and set its Items property to:

["Planning - values","Planning - market","Planning - sales","Execution - Data","Execution - Risks","Marketing - social","Marketing - Enviroment"]

 

Set 'ComboBox1' 's Onchange property to:

ClearCollect(Test,{Value:""});Clear(Test);If(Or("Planning - values" in ComboBox1.SelectedItems.Value,"Planning - market" in ComboBox1.SelectedItems.Value,"Planning - sales" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Planning"}));If(Or("Execution - Data" in ComboBox1.SelectedItems.Value,"Execution - Risks" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Execution"}));If(Or("Marketing - social" in ComboBox1.SelectedItems.Value,"Marketing - Enviroment" in ComboBox1.SelectedItems.Value),Collect(Test,{Value:"Marketing"}));Reset(ComboBox2)

 

2\ Add a combo box control 'ComboBox2' and set its Items property to:

["Planning","Execution","Marketing"]

 

Set 'ComboBox2' 's DefaultSelectedItems property to:

Test

 

3\ The result is as follows:

AAA.gif

Best Regards,
Wearsky
If my post helps, then please consider Accept it as the solution to help others. Thanks.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

PA Community Call

Power Apps Community Call

Next call is happening on April 21st at 8a PST.

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (77,000)