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 / Hide gallery if anothe...
Power Apps
Answered

Hide gallery if another galley is visible

(0) ShareShare
ReportReport
Posted on by 248

Hi Can someone please help to resolve this issue? i am trying to hide one gallery if another gallery is visible.

i am user this variable Set(_VarShowGallery,false); on Screen visible property, Button Onselect property is Set(_VarShowGallery, !_VarShowGallery) and gallery visible property is _VarShowGallery

 

Attached is the image for reference.Untitled.png  

Categories:
I have the same question (0)
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    Set whatever gallery you want to hide's Visible() property = !GalleryYouCanSee.Visible.

  • aayaanmayank Profile Picture
    248 on at

    thanks but this is not working if i have to hide more then 2 Galleries

  • zmorek Profile Picture
    3,272 on at

    Then use the same logic for each of the other galleries - set their Visible() property = whatever you need it to be. For example:

    • Gallery 1 - Visible = true
    • Gallery 2 - Visible = !Gallery1.Visible
    • Gallery 3 - Visible = And(!Gallery1.Visibile, !Gallery2.Visible)

    Consider breaking that up into separate screens if you're adding that many galleries on to a single screen. Reduced screen complexity = better responsiveness (especially on mobile devices) and it also is easier to maintain down the road.

  • aayaanmayank Profile Picture
    248 on at

    thanks i thought to put check box in place and now it is working the way i want

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard