cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

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
Highlighted
Community Support
Community Support

Hi @Anonymous,

 

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
Highlighted
Microsoft
Microsoft

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.

Highlighted
Community Support
Community Support

Hi @Anonymous,

 

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,292)