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 / patching to sp list fr...
Power Apps
Answered

patching to sp list from gallery input controls

(1) ShareShare
ReportReport
Posted on by 31
i have a form along with multiple galleries that are not connected to a data source but contain input controls (see image below). the number of inputs in the gallery is controlled by the number dropdown at the top of the screen.
 
the information at the top of the screen is standard for all records i am looking to patch and the information gathered from the galleries will be different at each patch. 
 
when i try using the following code to patch, the results from the galleries does not change even though i am selecting a different item in the gallery each time. in other words, the patched results only are 3 records all with the same information.
 
code.jpg
screen.jpg
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi,
     
    Hopefully I am following but you are putting 3 record in (based on your example) and half the data comes from the gallery and is different and half comes from the top.
     
    Then do this.
     
    ForAll(Gallery.AllItems,
    
       Patch(TheSource, Defaults(TheSource),
       {
          MyFieldFromTop: TopField.Text/ValueWhatever,
          MyFieldFromGallery: ThisRecord.MyGalleryControl.Value/Text etc
       }
    );
    
    And done
     
  • Verified answer
    ess1 Profile Picture
    31 on at
    that was super helpful! yes half the record comes from the top half of the screen and the other half from the galleries on the bottom half
     
    it works when i am patching only one gallery. is there anyway to patch all the galleries at once? for reference there are 7 different vertical galleries. 
     
     
  • ess1 Profile Picture
    31 on at
    I moved them all to one gallery. thank you @FLMike!! 
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,960 Moderator on at
    Hi
     
    If you can please mark my answer as the answer I would appreciate it.
     
  • ess1 Profile Picture
    31 on at
    @FLMike​​​​​​​

    How can i make all the fields in both the gallery and form required?
     
    working on the display mode of the submit button ive tried the following:
     
    If(!DailyCrewForm.Valid || (IsBlank(CrewLeadCombobox.Selected.DisplayName) || IsBlank(FTENumberInput.Value) || IsBlank(CrewCodeInput.Value) || IsBlank(PhoneInput.Value) || IsBlank(StartTimeInput.Value) || IsBlank(EndTimeInput.Value)), DisplayMode.Disabled, DisplayMode.Edit)
     
    this worked but it only applied to the first row of the gallery so if the user is trying to input 2 or more, only the first needs to be filled out for the submit button to be clickable
     
    i then tried testing this out but received the error "expected enum value"
    ForAll(CrewInfoInputGallery.AllItems,
        If(IsBlank(ThisRecord.CrewCodeInput.Value),
            DisplayMode.Disabled,
            DisplayMode.Edit))

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 103

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
wolenberg_ Profile Picture

wolenberg_ 67 Super User 2026 Season 1

Last 30 days Overall leaderboard