cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
beckster87
Frequent Visitor

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

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

3 ACCEPTED SOLUTIONS

Accepted Solutions
Silvester
Super User
Super User

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.

Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the thread and so other members of the community can find it easily.

View solution in original post

Ismael_Novo
Resolver II
Resolver II

Hi Beckster87

 

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

 

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

Best regards

 

View solution in original post

NandiniBhagya20
Solution Sage
Solution Sage

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


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

View solution in original post

3 REPLIES 3
Silvester
Super User
Super User

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.

Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the thread and so other members of the community can find it easily.
Ismael_Novo
Resolver II
Resolver II

Hi Beckster87

 

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

 

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

Best regards

 

NandiniBhagya20
Solution Sage
Solution Sage

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


Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (1,317)