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 / Enable Popup via Toggl...
Power Apps
Answered

Enable Popup via Toggle in Gallery

(0) ShareShare
ReportReport
Posted on by 175

Hi Friends,

 

I have a gallery for Peripherals as below with more than 20 items.

I've placed toggle under the gallery.

 

vikna_0-1623818911947.png

 

    

 

The toggle should enable the popup as below.

 

vikna_1-1623818911776.png

 

 

I know how to make it turn on and off in a non gallery setup.

 

Problem : How do I make the toggle work in a gallery for each peripherals as the details will be different.

 

Thank you!

Categories:
I have the same question (0)
  • Ethan_009 Profile Picture
    4,838 Moderator on at

    Hi @vikna ,

    Since all data is in the Gallery. Whatever be the DataSource, make sure it has a Unique Identifier for those records.

    Now you can create collection of records where those IDs will be stored for toggle 'ON'.

    I've made a similar scenario,

    Ethan_R_0-1623822375781.png

     

    If you see that I've shown label that is Visible based on those records where toggle is selected.

    Toggle Properties,

    OnCheck: 

    Collect(colShowPopUp,
     {
     ID: ThisItem.PrimaryKey
     }
    )

    OnUncheck:

    RemoveIf(colShowPopUp,
     ThisItem.PrimaryKey in ID
    )

     

    For Visible property on your Pop-Up Control (In my example, I've used label contol)

    Visible:

    If(ThisItem.PrimaryKey in colShowPopUp.ID, true, false)

     

    Hope this helps.

     

  • Jcook Profile Picture
    7,781 Most Valuable Professional on at

    Hi @vikna

     

    You can store the selected record inside a variable on the OnSelect property of the gallery:

     

    Set(varCurrentRecord, Gallery.Selected)

     

    build the pop up the same as you would outside the gallery, and reference a key field to relate back to the Variable.

     

  • Verified answer
    vikna Profile Picture
    175 on at

    Hi All,

    Thank you for your comments.
    However, I tried the below method to make it simple and it works

     

    vikna_0-1624347326561.png

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 70

#2
WarrenBelz Profile Picture

WarrenBelz 64 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 36 Super User 2026 Season 1

Last 30 days Overall leaderboard