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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Display items selected...
Power Apps
Unanswered

Display items selected in combo-box in a Gallery

(0) ShareShare
ReportReport
Posted on by 183

Hello! I have a combo-box in a form that allows users to choose one or more options from a selection of items. Some of the items in the combo-box are: "January", "February", "March", "April", and so on. The items in the list are pulled from a Lookup column in a SharePoint list ('review materials'), under the "Title" column.

 

jharville1_3-1606945316378.png

 

 

I have successfully used code to add whatever item the user selects to a collection, and pull in the corresponding email address to the same collection table but in the column to the right. The following is an example if the user selects "January" and "February"

jharville1_4-1606945348900.png

 

My application is an "Approvals" application, where all approvals are done in a Gallery (on the right side of the screen of the same screen as the details section of the submitted form). Each item selected in my combo-box is what is going to be approved. How would I display each item selected in my combo-box in separate sections of my Gallery?

 

For example: If the user selects: "January" , "February", "March" in my combo-box of the form, it should list out each selection separately in the Gallery. But currently, when I use this code: 'reviewComboBox.Selected.Value' (reviewComboBox is the name of my combo-box, and the Display Name in my form is "Review Material") in the 'Text' property, it shows this in my Gallery:

 

reviewmaterialexample.png

 

The first item chosen from the combo-box is shown 3 times, instead of each of the 3 items chosen from the combo-box shown once. I tried using the .SelectedItems code but it doesn't work as we need a text output, not a table.

 

 

Thank you!!

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,297 Super User 2024 Season 1 on at

    @jharville1 

    You would need to set the Gallery Items to the following:

        reviewComboBox.SelectedItems

     

    Then in your Gallery, you reference the items directly.  This will depend on the Items property of your Combobox.

    But as an example, if your Combobox only have records with a Value column, then in your Gallery, your Text property would be ThisItem.Value

    If the records defined in the Items of the ComboBox have your "Item" column, then your Text property in the Gallery would be ThisItem.Item

     

    I hope this is helpful for you.

  • jharville1 Profile Picture
    183 on at

    Thank you as always, the solution was ThisItem.Title since that was what was used in the naming convention. The same thing as what you said but different name for the variable. I appreciate the help Randy!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard