cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Marco_h
Regular Visitor

Get all selected items from combobox

Hi guys,

 

im gettin crazy. i ve set up a combobox which uncludes the following items:

 

["1","2","3","4"]

 

i want to display the selected combobox items in a textlabel field (Text = combobox.Selected.Value).... but i only get the last selected combobox entry..... how do i get all of them ... ?

16 REPLIES 16
Anonymous
Not applicable

I have a combo box which has a list of items.

I would like to populate another combo box based on the selections made in the first combo box.

 

I think i need to create a collection from the 1st combo box and use this collection to create the items in the 2nd drop down box.

 

I am struggling to collect the selections from the 1st combo.

 

any ideas?

Hello @Anonymous,

I don't think you need to create any collections. Please try the following:

1. Create a blank app and add 2 ComboBox controls.

2. Set ComboBox2.Items property to the ComboBox1.SelectedItems.

3. Select some items in ComboBox1. 

4. Open the ComboBox2. You should see the selected items.

Anonymous
Not applicable

Thanks @dinusc

 

Works a treat! Very much appreciated.

MK1
Helper IV
Helper IV

listbox default select

 

@dinusc

ComboBox with multi select

ItemsDistinct(Filter(Product,Name.Id=Dropdown.Selected.ID),Title)

ListBox

Items: Distinct(Filter(product,Title in Listbox.SelectedItems),Description)

Default:LookUp(Product,Title in listbox.SelectedItems.Result,Description)

textInput: Concat(ADDescription.SelectedItems,Result&",")

 

while using this scenario, Its working when there is only one item in the combobox and if we select it the description is selected default and added to the textbox

But, when we select multiple items in the combobox, on description it shows both descriptions are selected but its only populating one description on top of the list.

Can you help me with were i'm messing with the formula.

Thanks in advance.

MK

Anonymous
Not applicable

Thanks for your solution. My combo box values when printed to Sharepoint end with a comma. IS there a way to stop this from happening? See below a screenshot of my SharePoint list. Thanks!

Untitled1.png

Anonymous
Not applicable

Thanks, it works for me.

SSISJoost
Frequent Visitor

Here is some example code to get the ID's of the selected items from a combobox into a label.
PowerAppsCombo01

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,693)