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 / Gallery Checkbox displ...
Power Apps
Answered

Gallery Checkbox display a Button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi All,

I have a Gallery1 with a Checkbox1. I am able to select multiple checkboxes in this gallery then select an outside button (Button1) to do its functionality. I need to keep button(Button1) visible until the Checkbox1 is selected, then Button1 will appear. 

 

Button visible property: If(Checkbox1.Value, true, false)

 

Issue: I can select multiple checkboxes and the button appears, but if I uncheck any of those boxes then the button disappears. How can I uncheck the boxes and keep the button appeared until the last checkbox is uncheck? Is this possible? Thank you

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    If the Checkbox is in your gallery, then your Visible property needs to reference the Checkbox in context of the Gallery.

     

    Your Visible formula should be the following:

    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value))> 0

     

    You don't need the redundant If/true/false part.  The above evaluates to true or false already.

     

    I hope this is helpful for you.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I would use a count function here.   Something like this:

     

    If( CountRow(Filter(GalleryX.AllItems, Checkbox1.Value)) >0, true, false)

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @JR-BejeweledOne 

    Yep!!  However as mentioned, the If/true/false is all redundant.

    CountRows (which by the way is the function...not CountRow) compared to > 0 will evaluate to true or false.

    So, once that is evaluated (let's say to true), the formula becomes:  If(true, true, false)  Which is just not needed.

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @RandyHayes / @JR-BejeweledOne 
    Thank you both so much!! I appreciate both of you. I used the following, that did the trick. You both have a great day! Thanks again!

    CountRows(Filter(Gallery1.AllItems, Checkbox1.Value))> 0

     

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Anonymous 

    Excellent!  Have a great day as well!

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