cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Wowwowha
Level: Powered On

Multiple choice collection

If I have a Drop Box that allows multiple selections, Is it possible to record the multiple selections into a collection? 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Multiple choice collection

Hi @Wowwowha,

 

Could you please share a bit more about the Drop Box that you mentioned? Is it a Combo box control?

 

If the Drop Box that you mentioned is a Combo box control,  I agree with @dinusc's thought almost. I have made a test on my side, please take a try with the following workaround:14.JPG

 

Set the Items property of the Combo box control to following formula:

Choices('20180825_case1'.Status)

Note: The '20180825_case1' represents the SP list data source within my app.

 

Set the OnChange property of the Combo box control to following formula:

ClearCollect(Collection1,ComboBox1.SelectedItems)

or

Clear(Collection1);ForAll(ComboBox1.SelectedItems,Collect(Collection1,Value))

The GIF image as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
2 REPLIES 2
Microsoft Employee

Re: Multiple choice collection

Assuming your control is a ComboBox control, this can be done by copying the following formula to ComboBox.OnChange:

ClearCollect(sel, ComboBox1.SelectedItems)

This will create a collection "sel" which will always contain the selected items.

Community Support Team
Community Support Team

Re: Multiple choice collection

Hi @Wowwowha,

 

Could you please share a bit more about the Drop Box that you mentioned? Is it a Combo box control?

 

If the Drop Box that you mentioned is a Combo box control,  I agree with @dinusc's thought almost. I have made a test on my side, please take a try with the following workaround:14.JPG

 

Set the Items property of the Combo box control to following formula:

Choices('20180825_case1'.Status)

Note: The '20180825_case1' represents the SP list data source within my app.

 

Set the OnChange property of the Combo box control to following formula:

ClearCollect(Collection1,ComboBox1.SelectedItems)

or

Clear(Collection1);ForAll(ComboBox1.SelectedItems,Collect(Collection1,Value))

The GIF image as below:Test1.gif

 

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 200 members 4,211 guests
Recent signins:
Please welcome our newest community members: