web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Unpick Selected Item i...
Power Apps
Unanswered

Unpick Selected Item in a Gallery Control

(0) ShareShare
ReportReport
Posted on by 100

Hello Community,
I am struggling with one thing.

How can I deselect or unpick a selected item in a gallery control, so that

ThisItem and Gallery.Selected are both empty?


Background:
I am using 3 Gallery Controls that On-Select all land on the same Edit form.
Now when I select an item in Gallery A for the first time, the Edit view opens and I edit the properties normally. If I then select an item in Gallery B, the item in Gallery A is still selected. I can edit the Gallery B item here, but some Visible conditions don't work anymore, because it now checks the conditions for Gallery A as well as the conditions for Gallery B. This leads to inconsistencies or overlaps. I could work around this by unpicking ThisItem or Gallery.Selected.



Thanks for any help and tips!

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @ultrAslan ,

     

    You cannot unselect the Gallery as its not the behavior of Gallery control. (Although I want this feature as well :D)

    In your scenario, what you can do is, have a single global variable for all 3 Galleries.

     

    When you select a Gallery A item, onSelect property

    Set(RecordDetails, {Source: 'Gallery A', Record: ThisItem.Selected})

     

    When you select Gallery B item, onSelect property

    Set(RecordDetails, {Source: 'Gallery B', Record: ThisItem.Selected})

     

    During your Form Edit Page, you can set related conditions by checking source for each Gallery as it will always store last selected Gallery data.

     

    Hope this helps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 339 Most Valuable Professional

#2
11manish Profile Picture

11manish 180

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard