cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pwrappr01 Helper IV
Helper IV

How do you clear a gallery's selected item?

I'm about to go crazy. I have a gallery named "Gallery" with a button that has the code: Select(Parent). When I submit a form, I want to clear the Gallery.Selected value. How can I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: How do you clear a gallery's selected item?

Have you tried resetting your gallery using Reset(Gallery)? You may have to set the default of your gallery to {}.

Let me know if this doesn't work.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

5 REPLIES 5
Super User
Super User

Re: How do you clear a gallery's selected item?

Have you tried resetting your gallery using Reset(Gallery)? You may have to set the default of your gallery to {}.

Let me know if this doesn't work.

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit Bhatia
https://thepoweraddict.com

View solution in original post

Highlighted
pwrappr01 Helper IV
Helper IV

Re: How do you clear a gallery's selected item?

Works like a charm. I tried the Reset earlier, but I guess I had to add the {} as the default. Thanks for the help.

Super User
Super User

Re: How do you clear a gallery's selected item?

Glad I could help! Good luck with the rest of your app! Feel free to reach out in case of any questions!

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com
Super User
Super User

Re: How do you clear a gallery's selected item?

@PowerAddict 

Good call on that one.  I was browsing the official docs for info and noticed the Reset property was missing.  Very nice that you knew about this when its not even documented 😀

Super User
Super User

Re: How do you clear a gallery's selected item?

Thanks @mdevaney! It definitely helps to have encountered these issues firsthand 🙂

Thanks,
Hardit Bhatia
The Power Addict
https://thepoweraddict.com

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

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