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.

View solution in original post

2 REPLIES 2
Microsoft dinusc
Microsoft

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.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,690)