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 / How to make a button v...
Power Apps
Unanswered

How to make a button visible based on the clicking a different button which is on a gallery

(1) ShareShare
ReportReport
Posted on by 12

cmatheus22_0-1677678299896.png

Hi, is there any way to make those to button visible only when any of the arrow of each row of the gallery is selected? 

 

Categories:
I have the same question (0)
  • JasonLane Profile Picture
    261 on at

    @cmatheus22 in your gallery on the '>' button 'OnSelect' property you need to set a variable to allow them to appear and disappear the below allows the button to show on click and then hide on click

    Set(ApproveButton,!ApproveButton)

    The in the Visible Property of the button you need hidden add 'ApproveButton'

    I have used the ApproveButton as an example you can name that what you want.

    repeat the process for the other button naming that for example 'DeclineButton' so you'll end up with the below in the 'OnSelect' property of your gallery:

    Set(ApproveButton,!ApproveButton); Set(DeclineButton,!DeclineButton)

    I hope this helps?

    Thanks

    Jason

  • mmollet Profile Picture
    3,187 on at

    Set default property to {}. This will make the default a blank object. Once that is done you should be able to call Reset(GalleryName) and it will reset to default making the currently selected item the blank {}. Now you can set the visibility of that button to If(IsBlank(GalleryName.Selected), false, true)

     

    If that doesnt work you can try If(GalleryName.Selected = {}, false, true)

     

    There is also the option of adding a "pop-up" that holds these buttons. For example, add another icon and when that icon is clicked it makes the pop-up appear where the user then approves or rejects the item. If you need help with this let me know!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @mmollet 

    You never need an If() in a visible property

    GalleryName.Selected <> {} reduces to true or false

     

    @Drrickryp 

    Department of Redundancy Department

  • mmollet Profile Picture
    3,187 on at

    @Drrickryp 

    You may not need the if but it reads better for people who have no clue how it works or have never written code before. If I just post a bool statement I feel there is a lower chance that the average user will understand what is going on. But agreed!

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 427 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard