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 / Modern control Combobo...
Power Apps
Answered

Modern control Combobox doesn't show the items.

(1) ShareShare
ReportReport
Posted on by 1,066

Dear community,

 

I have a gallery on my form and a combobox called cbSort for sorting the Gallery items alphabetically.

I have set property Items to: ["A-Z"; "Z-A"]

And property DefaultSelectItems to: {Value: "A-Z"}

and this is the code in the items of the gallery:

        "crcfa_achternaam";
        If(
            cbSort.Selected.Value = "A-Z";
            SortOrder.Ascending;
            SortOrder.Descending
        )
    )
)
 
Why do i get to see an empty list when i click on the comobox?
I even tried adding a value. but no luck either 
 
Gr. P
Categories:
  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @PeKi72 

    Are you saying that the combo box doesn't show the items A-Z and Z-A, as highlighted below?

     

    timl_0-1703970503922.png

     

    I'm guessing that the formula that you posted is missing a call to the Sort function, and also missing the reference to the table name?

     

  • ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    Hi @PeKi72 , I tried this and it worked for me:

    ANB_0-1703970605443.png

    Delete and readd the combo box.

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • CU16021406-1 Profile Picture
    1,066 on at

    Yes I would like to display the values A-Z and Z-A in the combobox. But it is empty.

    Like i have mention it i also tried by adding a value. Still nothing.

     

    What i forgot to mention. Is that the code worked before. But i have started over creating my

    application. And suddenly the code doesn't work anymore. Strange !!!

  • CU16021406-1 Profile Picture
    1,066 on at

    PeKi72_0-1703971006886.png

     

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @PeKi72 - When we add a new combo box control, the default values in the control are Item1, Item2, and Item3. If you were to add a new combo box control, do these 3 values display correctly? If so, if you were to rename Item 1 to "A-Z" and Item 2 to "Z-A", do the items still appear?

     

    timl_0-1703971172723.png

     

  • Verified answer
    Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    make these changes

    1) Set Items to

    [{Value: "A-Z"}, {Value: "Z-A"}]

    2) in the control properties panel on the right side click on Edit fields and add the value field to the combobox.

    image.png

     

    If you don't specify the Value: key in the Items property and pick it to show in the Combobox it won't set the default.SelectedItems correctly. You also won't be able to retrieve the value property when a different selection is chosen for your if.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    @timl I tried that too, but something about changing the hard coded values loses the value property that it should default to. That's why I set mine up to records with an actual value property. That seems to work. Not sure why its required but it seems to be.

  • timl Profile Picture
    37,287 Super User 2026 Season 2 on at

    @Pstork1 - that's so weird because I just modified the hard-coded value in my earlier post and it works for me. I just tried again with another combo box control to make sure that I wasn't imagining it and worked again! Perhaps it's just one of these oddities with the modern controls.

  • Pstork1 Profile Picture
    69,661 Most Valuable Professional on at

    I agree its strange. I've tried a couple times and it doesn't work when I change the defaults to something other than the hard coded numbers. I don't know why. Something about the order I'm doing things I would assume.

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
11manish Profile Picture

11manish 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard