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

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 😀

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (5,062)