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 / Submit Form with data ...
Power Apps
Suggested Answer

Submit Form with data from gallery

(0) ShareShare
ReportReport
Posted on by 15

Hi! I need some help with a Power Apps form, maybe someone here knows how to fix this.

I have a form in Power Apps where the user needs to upload an attachment.

The form contains several fields, like request number, status and the attachment, however these fields are saved into a SharePoint list. The problem is with the request number and status since they are values created earlier in the process in a different screen and are stored in a different SharePoint list.

What I tried to do is:

  • Add a Gallery that pulls items from the other SharePoint list
  • Display the Request Number and status in that gallery
  • When the user submits the form, I want the form to read the selected record from the gallery and patch those same values into the new SharePoint list, along with the attachment
The issue:
The manual fields Attachment save correctly, but the values coming from the gallery always save as blank.

It seems like the form isn’t actually reading the gallery’s selected values when patching.

Has anyone dealt with this before? What’s the correct way to make a form capture values from a gallery and save them into a SharePoint list?

Categories:
I have the same question (0)
  • Suggested answer
    WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at
    A bit of reversing things here. The issue is that you need a Form with the second list as the DataSource and the use the Default of the new field controls from the fields selected in the Gallery for the values there. You cannot save attachments without having an attachment control on a Form based on the target list.
     
    So (assuming this is a new record), you could set a Variable when you select from the gallery
    Set(
       gblRecord,
       ThisItem
    );
    NewForm(YourFormName)
    Then using a Text value as an example, the Default (Value on a Modern control) of the value you want to bring over in the Text Input
    gblRecord.YourFieldName
    You would then complete the Form, add the attachment and submit it. If you also wanted to send a value back to the first List, use Patch
    Patch(
       List1,
       {
          ID: gblRecord.ID,
          Field1: YourControlOutput
          . . . . .
       }
    )
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like ♥
    Visit my blog
    Practical Power Apps    LinkedIn  
  • WarrenBelz Profile Picture
    154,494 Most Valuable Professional on at
    A quick follow-up to see if you received the answer you were looking for. Happy to assist further if not.
     
    Please ✅ Does this answer your question if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider answering Yes to Was this reply helpful? or give it a Like â™¥
    Visit my blog
    Practical Power Apps    LinkedIn   

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
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard