web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to submit multiple...
Power Apps
Unanswered

How to submit multiple forms at one buttom

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have 2 forms in my app called EditForm1 & EditForm 2 

 

On form 2 i have 1 button, i would like to save both forms with that single button.

 

 

But how??

Categories:
I have the same question (2)
  • Brank Profile Picture
    149 on at

    In the "OnSelect" property of the Button just do:

    "SubmitForm(EditForm1);;SubmitForm(EditForm2)"

     

    Of course if those forms are connected in the same data source, it would create 2 records in that data source, if those 2 forms are referred to the same record you should add one and then update that record with the ID created by the data source.

     

    Regards,

  • Community Power Platform Member Profile Picture
    on at

    i used SubmitForm(EditForm1);;SubmitForm(EditForm2) before, but indeed it create 2 records, i would like to have them in one record, what do i have to do to save the forms in the same record.

  • Community Power Platform Member Profile Picture
    on at

    I'm not a application developer, so i realy dont have any clue of what i have to do right now

  • Meneghino Profile Picture
    6,949 on at

    Hi @Anonymous

     

    I am not a fan of PowerApps forms, have little experience with them so what I suggest may need a little adjusting:

     

    SubmitForm(EditForm1);;Patch(YourDataSource; EditForm1.LastSubmit; EditForm2.Updates)

    Please let me know what happens.

  • Community Power Platform Member Profile Picture
    on at

    I tried your code but, i get an unknown error. 

  • Meneghino Profile Picture
    6,949 on at

    OK, difficult to help further in that case.

    As I have mentioned before, please let me know when you are ready to leave forms and use the single controls instead.

  • d2S Profile Picture
    4 on at

    @Anonymous did you manage to get round this. am trying to do same thing and been looking.

  • d2S Profile Picture
    4 on at

    @Meneghinohow do you mean 'leave forms and use the single controls instead'. i'm new to powerapps and thought everything is forms based.

  • Meneghino Profile Picture
    6,949 on at

    Hi @d2S

    Basically you can use Patch, Update, Remove etc. functions to write to a data source wthout the need for forms.

    If you need user input, you can for example use the value of the text of a text input control (say TextInput1) to write a new record in a data source like this:

    Patch(MyDataSource, Defaults(MyDataSource), {MyTextField: TextInput1.Text})

    You can also include calculated variables based on the current time, etc. etc.

    You can find references to all these functions here:

    https://powerapps.microsoft.com/en-us/tutorials/formula-reference/

  • Community Power Platform Member Profile Picture
    on at

    I just did it another way. I removed the second screen and placed them all in one screen. 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard