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 build a variabl...
Power Apps
Unanswered

How to build a variable gallery?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm creating a debugging menu for my app and want to create a Gallery to view and toggle variable statuses.

 

Is there a way to create a variable from the text entered in a Text box? Using @CarlosFigueira's method of sharing an app to convey the idea! 🙂

 

Please see attached.

 

Thanks

Categories:
  • Brian Dang Profile Picture
    3,976 on at

    Hi @ericonline, I like the way you think with having a debugging panel.

    You can create a gallery with toggles, but referencing the specific toggle will be a lengthy lookup:

    LookUp(Gallery1.AllItems,var="var_name",Toggle1.Value)

     

    This means, "Look up the value of the toggle in Gallery1 where the var column matches the name of your "variable". Alternatively, you could lookup the value in the collection, but you get the same result.

     

    It may be easier to place the toggles individually in a container like a canvas:

    https://www.youtube.com/watch?v=8f4vxZ_B7Qk

     

    You can show and hide the canvas with one click of an icon for debugging purposes.

     

    When you reference the state of this variable, you can reference the value of the toggle itself.

    Toggle1.Value

    I'm not able to import your app 😞

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I'll look through the resources you provide and see if I can make it work. Still unsure whether I can store a variable in a Gallery then toggle it using the Lookup function. Can't wait to play with that one. 

     

    RE: Importing the app: Its not really an import, but rather an extract and open. 

    • Unzip it
    • Open PowerApps web studio
    • Under "Open" there is a "Browse" option to browse your local filesystem
    • Open the unzipped .msapp file
    • (Should work) 🙂

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard