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 / Resetting a combo box ...
Power Apps
Answered

Resetting a combo box inside a gallery

(0) ShareShare
ReportReport
Posted on by 289

Hey,

I have a form which includes a couple of combo boxes where a user selects a product family. The form also has a gallery with a combo box where the user can select multiple products for the selected product family.

When a user has selected a product in the gallery and then decided to change the product family selection, how do I then reset the combo box in the gallery?

I have tried adding the following code to cmb_ProductFamily OnChange: (but none of them clear the combo box)

Reset(cmb_ProductLine);

Reset(gal_RequestedProducts);

 Please help 🙂

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    Hi @JimJim ,

    Set a Variable on the OnChange

    UpdateContext({varReset:true});
    UpdateContext({varReset:false})

    and set the Reset of the Combo Box to 

    varReset

     

    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.

    Visit my blog Practical Power Apps

     

  • JimJim Profile Picture
    289 on at

    edit: This work great, thank you

  • rsxytpeo Profile Picture
    82 on at

    @WarrenBelz I've tried the formula you mentioned above and for my scenario the combobox resets immediately once a selection is made.  What did I do wrong ?

  • WarrenBelz Profile Picture
    154,795 Most Valuable Professional on at

    @rsxytpeo ,

    This is an old closed post. Please create a new thread with a bit more detail in where you are using the code and your required result 

  • rsxytpeo Profile Picture
    82 on at

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 505

#2
WarrenBelz Profile Picture

WarrenBelz 502 Most Valuable Professional

#3
Haque Profile Picture

Haque 324

Last 30 days Overall leaderboard