cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
NguyenHuu
Helper IV
Helper IV

How to submit two forms with one button?

Hi everyone,

i insert two forms to one page in PowerApp for staff fill all info and submit, the data will record in SharePoint list so how can i submit those two forms just one button?

NguyenHuu_0-1636559952742.png

Thank you.

1 ACCEPTED SOLUTION

Accepted Solutions
C-Papa
Super User
Super User

Hi, assuming the data source is different for each from, this will submit the two forms one after the other

SubmitForm(Form1);SubmitForm(Form2)

Assuming the datasource is the same
Patch(DataSource,
Defaults(DataSource),// Assume that you want to create new records
Form1.Updates,
Form2.Updates
)

View solution in original post

2 REPLIES 2
C-Papa
Super User
Super User

Hi, assuming the data source is different for each from, this will submit the two forms one after the other

SubmitForm(Form1);SubmitForm(Form2)

Assuming the datasource is the same
Patch(DataSource,
Defaults(DataSource),// Assume that you want to create new records
Form1.Updates,
Form2.Updates
)

View solution in original post

Thanks @C-Papa  🙂

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,739)