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

4 REPLIES 4
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
)

Thanks @C-Papa  🙂

Hi - What if 

Hi - How could a user submit two forms to a single data source? I have tried the above but this creates a new record each time. Thanks

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

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