cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JimJim
Helper V
Helper V

Resetting a combo box inside a gallery

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 🙂

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

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

 

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

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

 

edit: This work great, thank you

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (6,236)