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 / ListBox is empty after...
Power Apps
Answered

ListBox is empty after every 2nd selection of ComboBox

(0) ShareShare
ReportReport
Posted on by

Hi, I have a ComboBox that connects to a SharePoint List Column (Single line of text). Every time I select an option from the ComboBox the ListBox below will show values from another Column (Lookup) in the same SharePoint List. The first time I make a selection in the ComboBox it returns the correct items in the ListBox, but for every second selection I make the ListBox is empty. Below image shows that the 2nd selection is always empty. I've tried using 'On Change', 'Reset' etc but cant fix the issue. I've not provided detailed code as I was hoping this could be a known issue in one of the settings. Any help appreciated, thanks.

 

ListBoxEmpty.png

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,563 Super User 2026 Season 1 on at

    Hi @Marty3012,

     

    Can you please share the Items property of the List Box?

  • Marty3012 Profile Picture
    on at

    Hi. I've worked out why it is acting the way it is. When I delete the current selection and then select another option in the combobox the correct items then appear in the list box;

    ListBoxEmpty2.png

     

    Consequently what I would like to do is when I select the Combobox the current selection is automatically removed so that the next selection has the correct items in the listbox. I think if this is not possible users would not know to delete the current selection in order for it to work correctly.

     

    The items code is below. Basically it pulls in values from the SharePoint look up column and displays them correctly in the listbox.

     

    With(
    {
    sizesString: Concat(
    Gallery1_1.Selected.Dependencies,
    Value,
    " ,"
    )
    },
    With(
    {
    sizesFormatted: Mid(
    sizesString,
    1,
    Len(sizesString)
    )
    },
    Split(
    sizesFormatted,
    ","
    )
    )
    )

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Marty3012,

    Glad that you have resolved your problem.

    Mark your reply as an answer to help more users.

    Thanks for your cooperation.

  • Verified answer
    Marty3012 Profile Picture
    on at

    Since I was populating the ComboBox with a Gallery I worked out what i needed to do was set the 'OnSelect' for the ComboBox to 'Reset(GalleryName)'. This means as soon as I select an option in the ComboBox it clears the current selection in the Gallery and updates the ListBox accordingly.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard