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 / Combobox reset isn't w...
Power Apps
Answered

Combobox reset isn't working in runtime

(0) ShareShare
ReportReport
Posted on by 8

I'm using a combobox to filter records in a gallery. I want to be able to unselect all items in the combobox by using the Reset with the DefaultSelectedItems left blank. I want this combobox reset to happen whenever the "Show all records" button is pressed or when the Back button is pressed. The different options I've tried work in preview while I'm editing the app on the web but they do not work when the app is running normally. Here are a couple of the options I've tried.

 

1. Toggle a variable to reset the combobox.

ComboBox.Default = 

ComboBox.Reset = reset_v

Button.OnSelect = UpdateContext({reset_v:true}); UpdateContext({reset_v:false})

2. Use the reset function.

ComboBox.Default = 

Button.OnSelect = Reset(ComboBox)

 

I used this document for reference.

 

https://docs.microsoft.com/en-us/powerapps/functions/function-reset

 

Is there something that I'm missing in order to get this to work?

Categories:
  • CarlosFigueira Profile Picture
    Microsoft Employee on at

    Instead of setting the DefaultSelectedItems to blank (nothing), try setting it to an empty collection ([]) - that should work:

    ComboBox1.Default: []
    Button.OnSelect: Reset(ComboBox1)

    (correction: it should be DefaultSelectedItems instead of Default for the Combobox):

    ComboBox1.DefaultSelectedItems: []
    Button.OnSelect: Reset(ComboBox1)

     

  • AKing Profile Picture
    8 on at

    This gives me the error:

    "The property expects Record Values, but this rule produces incompatible Table values."

     

  • Verified answer
    CarlosFigueira Profile Picture
    Microsoft Employee on at

    Sorry, it should have been DefaultSelectedItems, not Default, as I had before:

    ComboBox1.DefaultSelectedItems: []
    Button.OnSelect: Reset(ComboBox1)
  • AKing Profile Picture
    8 on at

    Ok, that get's rid of the error. I tested my app with that change and the reset still doesn't work. I'm thinking that my app isn't publishing properly, so I did a couple of tests real quick.

     

    First, I tried to add a new default style combobox with the default items list and a new button just to reset that combobox. This worked in preview but not when running the app. Second, I created a new app that contained only a combobox and a reset button. This worked in both preview and when running the app. In the new app the reset works when the DefaultSelectedItems is left blank or set to []. 

     

    Are there limits in powerapps that I should know about to make it run smoothly or is this app somehow corrupted?

  • AKing Profile Picture
    8 on at

    Through trial and error I found that after I ungrouped those items the reset function started working. I had about 30 items in the group but had only recently added 10 of those. With a smaller group there was no issue with resetting the comboboxes.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard