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 multiple forms
Power Apps
Answered

submit multiple forms

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, 

 

I have a bottom with following code:
" SubmitForm(Form1) And SubmitForm(Form2) And SubmitForm(Form3) And UpdateContext({Popup:true}) "

 

I have three forms on one screen. Backend linked to an excel table stored in one drive. 

 

When clicking the bottom, only the first form gets submitted and the text box in either form2 or form3 always have some issue. 

 

Can anyone provide some insights? 

 

Thanks,

JS

 

 

Capture.JPG

 

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Use a semicolon instead of "and".

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @Drrickryp,

     

    I've tried that too. Same error in these textboxes.

     

    I set textbox value to "required". When i set "required" = false, all three forms get submitted successfully. But text value for form2 and form3 became empty.

     

    Felt like when form1 get submitted, textbox for form2 and form3 got cleared. But i did set "reset" option to be false.

     

    Don't know what's going on.

    Thanks,
    JS

     

     

     

  • Verified answer
    v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Submit Multiple form is not supported, please check the response from CarlosFigueira in the following thread:

    Multiple form submit

    Quoted here:

    "

    Currently this scenario will not work if you have both forms set to the same data source (it should work if you have it set to different data sources, please let me know if this is not the case). When you submit the first form, the data source is refreshed, which causes the item in the second form to be refreshed as well - and the changes that you made are lost.

     

    If you have the Item property of both forms set to the same record, then that's expected. If you make changes in one of the forms we do want to update that record everywhere in the app so that it contains the latest changes from the server

     

    Even if you have the two forms with different records, it's possible that the change in one of the records will cause a change in the other record (e.g., in a SQL trigger operation), so PowerApps takes the "safe" approach and updates all records bound to that data source in the application, which is why the second form "loses" the changes and therefore there's nothing to be submitted.

    "

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks @v-micsh-msft

     

    I changed each form to a different source and it worked.

     

    Many thanks!

  • StuartSSTech Profile Picture
    36 on at

    Is this still a known issue that you cannot submit multiple forms without using multiple data sources

  • pdavis004 Profile Picture
    13 on at

    @StuartSSTech 

     

    I have an app that submitts multiple forms to SQL, it works. Currently having an issue when its a new record each form is submitted ans a seperate record, but on editing a record it workds seamlessly.

  • pdavis004 Profile Picture
    13 on at

    I found that this answer from @Anonymous here works: 

     

    https://powerusers.microsoft.com/t5/General-Discussion/How-to-submit-multiple-forms-at-one-buttom/m-p/99391/highlight/true#M36886

     

    Re: How to submit multiple forms at one buttom
     

    I have many forms across different screens in my app that I submit to one record in my SQL database. The method I use is. 

    Patch('database', Defaults('database'), Form1.Updates, Form2.Updates, Form3.Updates...etc.)

     If there is already a record in the database that I want to modify I search for the ID_Key (Must be a unique key to work) and then patch to that. 

    Patch('database',{ID_key:LookUp('database',Name=DataCardValue9.Selected.Value,ID_key)},Form1.Updates, Form2.Updates, Form3.Updates, etc...)

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard