cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pwrappr01
Level: Powered On

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
Level: Powered On

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,375)