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 / Saving Multiple Forms ...
Power Apps
Unanswered

Saving Multiple Forms With One Save Button On Tabular Gallery Interface

(0) ShareShare
ReportReport
Posted on by 126

Hello,

 

I have a tabular gallery interface and each screen has a form from the same table on it. How can I save all of these without using the submitform for each form on the save button? All of these forms are from the "Company" table. 

 

Here is the code on my OnSelect property of the save button:

 

SubmitForm(Form_General_Information);SubmitForm(Form_Company_Contacts);SubmitForm(Form_ST_Registrations_Filings);SubmitForm(Form_Additional_Information);SubmitForm(Form_Nexus_Analysis);
Set(
varCompanyRecord,
LookUp(
Companies,
lg_companyid = varCompanyRecord.lg_companyid
)

 

dcastillo1_0-1660671357773.png

Any help to be more efficient would be great!

 

Thanks.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @dcastillo1 

    If these are all the same record on the same table, then you will want to split the forms properly and only submit one.

    To learn how to split forms properly, please take a look over this video which will explain how to do it and not break your form functionality.

     

    I hope this is helpful for you.

  • dcastillo1 Profile Picture
    126 on at

    Thanks! That video helped. One thing though, if I have one field that is on multiple forms, how do I get this to save? If I do not update that field with the same text on each screen/form, the entry is not saved because the field may be empty on another form on a different screen. I hope that makes sense. 

     

    Patch(Companies,Coalesce(varCompanyRecord,Defaults(Companies)), Form_General_Information.Updates, Form_Additional_Information.Updates, Form_Company_Contacts.Updates, Form_Nexus_Analysis.Updates, Form_ST_Registrations_Filings.Updates);

     

    Any suggestions would be great!

     

    Thanks.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @dcastillo1 
    Okay, but you are showing a Patch function for your forms now.  You don't want to be doing a patch to the Companies datasource, you want to be submitting your master form.

     

    As for the common field, do you really want that to be editable on each form variation?

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

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard