web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

Setting the Visible property from a Button

Like (0) ShareShare
ReportReport
Posted on 11 Mar 2020 08:19:01 by 206

I have a gallery within my powerapp (GalleryApp) and I have a button in there which when pressed displays a drop down box.  The problem I have is that when the Button is pressed every instance of the drop box appears all the way down the gallery.  Is there a way that I can set the visible property on the drop box so that only the individual dropbox appears when the button is pressed?

Categories:
  • Verified answer
    Community Power Platform Member Profile Picture
    on 11 Mar 2020 at 09:33:27
    Re: Setting the Visible property from a Button

    Try setting the OnSelect property of the button to the following:

     

    UpdateContext({varBtnPressed: false}); Select(Parent); UpdateContext({varBtnPressed:!varBtnPressed})

     

    Have had a test my end with this and seems to be working, "moving" the dropdown to whichever gallery item is selected.

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2