Notifications
Announcements
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??
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,
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.
I'm not a application developer, so i realy dont have any clue of what i have to do right now
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.
I tried your code but, i get an unknown error.
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.
@Anonymous did you manage to get round this. am trying to do same thing and been looking.
@Meneghinohow do you mean 'leave forms and use the single controls instead'. i'm new to powerapps and thought everything is forms based.
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/
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268