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 / Edit custom form with ...
Power Apps
Answered

Edit custom form with a Gallery

(0) ShareShare
ReportReport
Posted on by 83

I have a custom for with a gallery at the bottom. The source is a SharePoint list for both. The gallery filters on one column "entry type". The top portion of my for is entry type Primary. The gallery is filtered on the other entry types - Power, Network, KVM. On edit I can edit the top portion - Primary but not anything in the gallery. I'm thinking its something in the "OnEdit" I need to add. I'm still learning PowerApps so any help would be much appreciated.

 

wlyttle_0-1650309633824.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @wlyttle ,

     

    Could you please share more details about your scenario? Is that Gallery in or out of the form? What do you mean by "On edit I can edit the top portion - Primary but not anything in the gallery"? I can see text inputs in the Gallery and all of them are editable.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • wlyttle Profile Picture
    83 on at

    Thanks for helping out.

     

    The gallery in in the form. The sharepoint list looks like this:

    SharePoint list example - 

     

    Device Name         Entry Type      Data1     Data2   .....

    Server1                  Primary           1234       abcd

    Server1                  Network          Eth1        Switch4

    Server1                  Power             UPS2       Port8

    Server8                  Primary           5678       efgh

    Server8                  Network          Eth2        Switch2

    Server8                  Power               UPS6       Port5

     

    There are many more columns but I only need to focus on the Device Name and the Entry type. The top portion of the form is for the primary entry of the device name. The gallery is filtered on the other entry types. I got help here to make that work. When I bring up a device name to edit the form fields i can edit. The gallery part i can not.  In the form setup the Screen is set to edit and the gallery is too. I metioned the "On Edit" thinking I need to put something more in there.

    wlyttle_0-1650638922913.png

    I appriciate any help on this. It's almost working they way I need it to.

    Bill

     

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @wlyttle ,

     

    Apparently the Gallery is below not inside the Edit form. If you need to change display mode of the Gallery, you will have to set DisplayMode property of the Gallery based on the DefaultMode of the Edit form:

    If(Editform.Mode = FormMode.Edit,
     DisplayMode.Edit,
     DisplayMode.View
    )

     

    In the Gallery, the DisplayMode property of all Controls that need to edit (type in, select etc.) need change to:

    Parent.DisplayMode

    in order to make them be consistent with the Gallery.

     

    Back to your scenario, I think the issue is: you are able to type in in the Gallery but nothing will be submitted to the SP list, am I right? 

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • wlyttle Profile Picture
    83 on at

    Thanks - That helped a lot. I was inserting a text label not Text input in the gallery. Now i can edit those fields but cannot save them. Can you help with that part too. I guess its going to be an On Save formula.

     

    Bill

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @wlyttle ,

     

    You can save the Gallery OnSave:

    ForAll(TheGallery.AllItems, Patch(YourList, ThisRecord, {Column1: TextInput1.Text, Column2: TextInput2.Text, ...})

     

    But honestly, if there are not many field will be modified, I would prefer to use OnChange of each TextInputs to save the changes directly to the source:

    Patch(YourList, ThisItem, {CorrespondingColumn: Self.Text})

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • wlyttle Profile Picture
    83 on at

    I went with the On Change option. Works Great! 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard