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 / Variable inside select.id
Power Apps
Answered

Variable inside select.id

(0) ShareShare
ReportReport
Posted on by 44

Hi,
I am trying to have multiple gallery's that are linked to an edit form on one page of an app.

I have got this far by having three buttons that hide and show the gallery plus the form associated to that gallery, i wonder if i could make the selection variable so its just one form instead of 3.

On the selection button it sets a variable for "Set(varformselection, Gallery5_1)"

the form then has this code on the items : but it just seems to through me an error. Is it possible to use a variable in this way?

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at

    @IanP87 

     

    Please try this:

    Set(varformselection, Gallery5_1.Selected)

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

  • IanP87 Profile Picture
    44 on at

    Thanks but now the form is not cycling as you click different records in the gallery as the button is locking the selection in the variable

  • Verified answer
    SpongYe Profile Picture
    5,616 Super User 2025 Season 2 on at

    Hi @IanP87 

     

    Update the Variable on Gallery Selection. Instead of setting the variable only once when the button is clicked, you could update the variable each time a different record is selected in the gallery.

     

    Try setting the variable in the OnSelect property of the gallery items.

    Set(varformselection, ThisItem)

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

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 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard