web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Inside Gallery PopUps
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?

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    @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
  • Fernanda Profile Picture
    380 on at

    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

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Fernanda 

    Put the popup outside the gallery.

  • Fernanda Profile Picture
    380 on at

    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

    @Fernanda

    Some things are more trouble than they are worth. 

  • Fernanda Profile Picture
    380 on at

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

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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});

     

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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

    Brilliant!!!

    Totally worked!

    Thank you so much!!!!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard