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 and show a button...
Power Apps
Answered

Hide and show a button based on the content of the Gallery

(0) ShareShare
ReportReport
Posted on by 19

Hello all

I have a problem with showing and hiding an icon/button.
I want to make the Gallery button invisible while the Gallery is still empty.

Thanks for your help.

 

 

Footer_Icon.png

 

Greetings

Categories:
  • Verified answer
    Silvester. Akakpo Profile Picture
    783 on at

    Hello @beckster87 ,
    Try this on the button visible property

    !IsEmpty(YourgalleryDataSource)

    please accept as a solution if it works for you. Don't forget to give me a thumbs up.

  • Verified answer
    Ismael_Novo Profile Picture
    308 on at

    Hi Beckster87

     

    You only need to set the visible property to the formula:

     

    If(CountRows(Gallery1.AllItems) = 0, false, true)

    Best regards

     

  • Verified answer
    NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    You can use this formula on visible property of the gallery button : If(CountRows(Gallery1.AllItems)=0, false, true)

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard