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 link multiple G...
Power Apps
Answered

How to link multiple Gallery to a single form

(0) ShareShare
ReportReport
Posted on by

So I am not sure how to link multiple galleries to a single edit form. I can do one gallery to the form with this syntax on the Item property of the form Gallery3.Selected  However, i have two other galleries that need to link to that edit form as well. How do I set that?

 

i tried doing the syntax like this  Gallery3.Selected; Gallery3_1.Selected; Gallery3_2.Selected  but it is not working

 

Please let me know what I am not doing correctly.

 

Thank you

 

 

 

 

Categories:
  • SoPatt Profile Picture
    Microsoft Employee on at

    A form is to edit an item. Perhaps you need 3 forms? It is possible to have multiple forms on a single screen, so you can edit 3 items, and they could all be submitted at the same time. Or you can do more advanced things but generally with forms you will have a 1:1 relationship between a form and a record (item).

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @punksterz626

    @sopatte No need for all that. 

    In the OnSelect property of each gallery: Set(variable, ThisItem) and in the form item property: LookUp(datasource, ID=variable.ID)

  • SoPatt Profile Picture
    Microsoft Employee on at

    This is another way to set the Item property of the form to the selected item in the gallery.

    Even so, you already have the item so why look it up again?

    Gallery.OnSelect:Set(variable, ThisItem)
    Form.Item:variable


    But I don't see the connection between this answer and the question. Maybe it's me.

  • punksterz626 Profile Picture
    on at

    It screen has a subset of employees so it is not the same employee from screen1 >screen2 etc. I'll test out your suggestion. Thanks!

  • punksterz626 Profile Picture
    on at

    Its not accepting. I think I'm doing something wrong. 

     

    so on each of the 3 galleries i have the following syntax applied to the Onselect property

     

    Navigate(Form,None); Set(mgrVar,ThisItem.Employee)

     

    On the form item I have this syntax set

     

    LookUp('Org Chart',ID = mgrVar.ID)

     

    Am i missing something?

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @punksterz626 

    Try

    Set(mgrVarID,ThisItem.ID); Navigate(Form)  in the galleries (It need to be the same in all three and set the variable first before Navigating off the form)

    and 

    LookUp('Org Chart',ID = mgrVarID)  in the form Item property

  • punksterz626 Profile Picture
    on at

    This works perfectly!! Thank you, thank you!

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    You are welcome x 2!!You are welcome x 2!!

     

  • MK102 Profile Picture
    13 on at

    Hi @Drrickryp , I have written down the same syntax, of course replacing my data source and form etc... however, I dont think the data is being picked up. It says 'no items to display' on the form. Do you know why this could be?

  • ScablandsKing Profile Picture
    201 on at

    I'm having the same problem @MK102 .

     

    Any suggestions?

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
timl Profile Picture

timl 122 Super User 2026 Season 2

Last 30 days Overall leaderboard