web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Displaying combobox Se...
Power Apps
Answered

Displaying combobox SelectedItems in a label

(1) ShareShare
ReportReport
Posted on by 18

On one screen, the user would select items from a combo box and the ComboBox.SelectedItems would be saved to a list[] inside a collection.

 

On the next screen the contents of the list should be displayed in a text label which is inside a gallery

 

I tried the formula Concat(ThisItem.list, Value & ",") however I am getting the error that "Value" is not recognized. I have tried to replace "Value" with "Title", "Name", "Record" or even the column name of the data on the sharepoint list but none of those work.

 

The funny thing is if I insert another combobox on the new screen with the same datasource and use the formula ThisItem.list as the DefaultSelectedItems property then the proper items are shown. And funnier that I can then use Concat(Combobox2.SelectedItems, Title & ",") on the new combobox and the label displays properly.

 

How can i access the saved selections of the original combobox directly?

Categories:
I have the same question (0)
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Overside -

     

    1. What is your data source (SharePoint, Dataverse, SQL etc)
    2. What is the data type of that multi-select field? (People, Choices, LookUp)
  • Overside Profile Picture
    18 on at

    1. The datasource of the combobox is a sharepoint list. For the Items property of the combobox I used SharepointListName.ColumnName

     

    2. The datatype of the column is text

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Overside - to be clear, the column is a Single Line Text data type which contains values like "Text1; Text2; Text3" ? (with a consistent delimiter like " ; ") 

  • Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at

    Hi @Overside

     

    How do you get to Screen 2???

     

    You could aways pass the value (the string you as the Concat), as a Context Variable in your Navigate

     

    Navigate(Screen2, Transition.None, { _MyList: Concat(ComboBox.SelectedItems, Title & ",") }) 


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

  • Overside Profile Picture
    18 on at

    It is single line text data type, but each row is just one word with no delimiters. What I am trying to do is to show what the user selected in a delimited fashion in a text label

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Overside - sorry but I cannot visualise what you're trying to do. All I can understand so far is that you have a ComboBox control. Presumably, the OnChange property contains something like: 

     

    ClearCollect(
     list,
     Self.SelectedItems.Title
    )

     

    You then have a Gallery control on another screen and you want to display the contents of the selected items into the Text property of a Label control embedded into that Gallery. However, you have not explained what the Items property of that Gallery is. "ThisItem.list" does not tell me anything.

     

  • Michael E. Gernaey Profile Picture
    53,968 Super User 2026 Season 2 on at

    If you pass in the data per my example

     

    Then just set the label text to _MyList


    If I have helped you, I would really appreciate if you please Mark my answer as Resolved/Answered, and give it a thumbs up, so it can help others

    Cheers

    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

  • Overside Profile Picture
    18 on at

    Ok sorry I will be more clear

     

    It's an app to assign/request training for people, there are 3 pertinent screens for the issue at hand.

     

    In the first screen the user chooses people from a person gallery, and upon making a new selection a record is added in the colPeople collection like below.

    Collect(
     colPeople, 
     {
     //some values
     GeneralTrainings:[],
     //some more values
     }
     )

     On the next screen, which btw all screen navigations are done by buttons, the user sees a new gallery of just the people he selected previously (so source = colPeople). And for each people the user can assign trainings through a combobox, with source from a list of trainings on sharepoint. The list only has one column (trainingName). I have added the below code to the OnChange property of the combobox:

    UpdateIf(
     colPeople,
     ID = ThisItem.ID,
     {GeneralTrainings: cmb_training_selection.SelectedItems}
    )

    Lastly a few screens later there is a summary screen where the user should be able to preview the training he has selected for each user. Again the user sees a people gallery with source colPeople. And on each gallery item there should be a label to display the previously selected training's as a string. This is where the problem as described originally happens.

  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @Overside - there is something illogical in your description. Based on my reading, your "cmb_training_selection" ComboBox control is embedded into the Gallery control which contains colPeople in the Items property. 

     

    If that was the case, then you would be rewriting the Items in the Gallery using a ComboBox embedded into the Gallery itself?

     

    UpdateIf(
     colPeople,
     ID = ThisItem.ID,
     {GeneralTrainings: cmb_training_selection.SelectedItems}
    )

     

  • Overside Profile Picture
    18 on at

    I am not sure I follow you there.

    The combobox is indeed embedded in the gallery, so that it is used to select the training(s) for each item(people) in the gallery.

    The source (Items property) of the gallery remains colPeople. The combobox only rewrites the GeneralTrainings record of the colPeople collection, or at least that is the intention.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard