Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Inside Gallery PopUps

(0) ShareShare
ReportReport
Posted on by 380

Hello!

I am having a problem with a gallery popup.

What I need to do, is update a record on my gallery, when a button is clicked. I built the popup, but it appears on every single record displayed. And I only want it to show on the record I have selected (not all records have the button displayed, because it is only visible for those which have "No" in a certain column)

I looked for solutions here, and I found a few, but I can't make it work. I tried adding a new column (a solution I read), didn't work. Also tried and IF function If(ThisItem.IsSelected;!variable;variable), and it worked on opening the popup, but I couldn't close it... Tried filtering ID column, but I couldn't break the function.

 

Fernanda_0-1672350180570.png

Can you help me please?

  • Fernanda Profile Picture
    380 on at
    Re: Inside Gallery PopUps

    Brilliant!!!

    Totally worked!

    Thank you so much!!!!

  • Verified answer
    BCBuizer Profile Picture
    22,185 Super User 2025 Season 1 on at
    Re: Inside Gallery PopUps

    HI @Fernanda ,

     

    I'd suggest to change the Visible property of the popup to:

    varRenovacio && ThisItem.IsSelected

    With this, it will only show up for the selected Item.

     

    To make the popup disappear when selecting another item, include the below in the OnSelect property of the gallery:

    UpdateContext({varRenovacion:false});

     

  • BCBuizer Profile Picture
    22,185 Super User 2025 Season 1 on at
    Re: Inside Gallery PopUps

    HI @Fernanda ,

     

    I'd suggest to change the Visible property of the popup to:

    varRenovacio && ThisItem.IsSelected

    With this, it will only show up for the selected Item.

     

    To make the popup disappear when selecting another item, include the below in the OnSelect property of the gallery:

    UpdateContext({varRenovacion:false});

     

  • Fernanda Profile Picture
    380 on at
    Re: Inside Gallery PopUps

    Indeed... but still, also great way to learn more 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Inside Gallery PopUps

    @Fernanda

    Some things are more trouble than they are worth. 

  • Fernanda Profile Picture
    380 on at
    Re: Inside Gallery PopUps

    Hi!

    I already did that and it works, but it doesnt convince us visually. I have always thought that PowerApps is way smarter than I am 🤣 so I am hoping there is a workaround or a smart way of doing it.

    If not, putting it outside of the gallery is the solution (I just hope not 🙂)

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at
    Re: Inside Gallery PopUps

    @Fernanda 

    Put the popup outside the gallery.

  • Fernanda Profile Picture
    380 on at
    Re: Inside Gallery PopUps

    Hello! thanks for the reply!

    It works just showing me the popup for that record, but I can't close it down again without clicking on another record. I need to click on the X button to get back to the record.

    Right now, I came back to the basics of the popUp and my functions are:

    Fernanda_0-1672355319214.png

    Button 1: 

    UpdateContext({varRenovacion:true})

    Button 2: 

    UpdateContext({varRenovacion:false})

    PopUp Group Visible Property:

    Fernanda_1-1672355397161.png

     

    If i just change the visible property, it does open up when I click anywhere... But I only want it open when Button 1 is clicked (it only shows when a criteria is met, not always) and it must clos when Button 2 is clicked.

     

    I tried using your idea by changing true for ThisItem.IsSelected, but didn't work well and I couldn't close the popup

  • BCBuizer Profile Picture
    22,185 Super User 2025 Season 1 on at
    Re: Inside Gallery PopUps

    @Fernanda ,

     

    Please add this condition to the Visible property of the popup to make it only visible for the selected item in the gallery: 

    ThisItem.IsSelected

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399