cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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
Highlighted
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
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.

Highlighted
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
Highlighted
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 😀

Highlighted
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

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,571)