Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Creating a submit button for multiple forms

(1) ShareShare
ReportReport
Posted on by 40

Hello,

 

I am currently trying to create a button that will submit multiple forms at once. I have tried to integrate the patch function but it keeps coming up with multiple errors. I have integrated the formula "VarFormData" into all of the "Item" sections of all my forms but still continue to get the errors.

 

 

Any help would be greatly appreciated, thanks.

  • Halleduncan Profile Picture
    40 on at
    Re: Creating a submit button for multiple forms

    Helli,

     

    I have tried placing in a different formula that now worked. However I am trying to link my new formula to my status field which is where the new error seems to be occurring.

    My new formula is: 

    UpdateContext({locissubmit: false}) && SubmitForm(EditForm1);SubmitForm(EditForm1_1);SubmitForm(EditForm1_2);SubmitForm(EditForm1_3);SubmitForm(EditForm1_4);SubmitForm(EditForm1_5);SubmitForm(EditForm1_6);SubmitForm(EditForm1_7)
     
    Thanks.
  • mmbr1606 Profile Picture
    12,108 Super User 2025 Season 1 on at
    Re: Creating a submit button for multiple forms

    hey @Halleduncan 

     

    can you share the code u are currently using plus where u are recieving this error (which part of the code)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Halleduncan Profile Picture
    40 on at
    Re: Creating a submit button for multiple forms

    Hello,

     

    I am still receiving this error with the adapted formula above.

     

    Thanks.

     

  • Verified answer
    mmbr1606 Profile Picture
    12,108 Super User 2025 Season 1 on at
    Re: Creating a submit button for multiple forms

    hey @Halleduncan 

     

    i use this and it works:

    Patch(
     'Project Closing Reports', 
     varFormData, 
     GeneralForm.Updates, 
     Summaryform.Updates, 
     'Reference Form'.Updates, 
     'Lessons Form'.Updates,
     {Status: "Draft"}
    );Navigate('Success Draft Screen')
    

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,645 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,997 Most Valuable Professional

Leaderboard