cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Submit Multi Page form to a SharePoint list

HI

 

I have a SharePoint Online list with loads of columns. I've created a custom form using PowerApps with multiple pages to make it easier for my users to complete in sections. 

 

When I go to save the form, I get the following

 

1. 3 separate submissions if I use this OnSave syntax

SubmitForm(SharePointForm1);SubmitForm(SharePointForm1_2);SubmitForm(SharePointForm1_3)

 

2. Only page 1 list columns saved to SharePoint list if i use this Syntax

SubmitForm(SharePointForm1)&&SubmitForm(SharePointForm1_2)&&SubmitForm(SharePointForm1_3)

 

I'm reading the Patch Function probably wont help my situation. 

 

Does anyone else use Powerapps custom forms with SharePoint Online?

 

What the hell am i doing wrong? I though this Powerapps product was supposed to make things easier to throw out easy automations. This is not easy. 

 

Bring back Infopath

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Submit Multi Page form to a SharePoint list

@jamestredree 

Hi there.   Is all of your data stored in the same table?  If yes, there is no need to create multiple forms.  You can use a single screen and show/hide datacards when the user clicks a button to goto the next section.  It will appear like there are multiple screens but there aren't.  An advantage of doing things this way is your only have to submit the form once.

 

Put this code in the OnVisible property of your screen

Set(currentPage,1)

 

Then for every datacard you want showing on Page 1 you must put this code in the visible property.  For any datacards showing on other screens use the appropriate page number

currentPage=1

 

Create a button to browse to the next page with the following properties.  We will say for this example there are 3 screens.

Text: "Next Page"
OnSelect: Set(currentPage,Min(currentPage+1,3)
Visible: currentPage<>3

 

Create another button to browse to the previous page with the following properties.

 

Text: "Previous Page"
OnSelect: Set(currentPage,Max(currentPage-1,1)
Visible: currentPage<>1

 

 

Finally create a button to Submit the form with the following properties

Text: "Submit Form"
OnSelect: SubmitForm(your_form_name_here)

 

Let me know if you have questions.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: Submit Multi Page form to a SharePoint list

@jamestredree 

Hi there.   Is all of your data stored in the same table?  If yes, there is no need to create multiple forms.  You can use a single screen and show/hide datacards when the user clicks a button to goto the next section.  It will appear like there are multiple screens but there aren't.  An advantage of doing things this way is your only have to submit the form once.

 

Put this code in the OnVisible property of your screen

Set(currentPage,1)

 

Then for every datacard you want showing on Page 1 you must put this code in the visible property.  For any datacards showing on other screens use the appropriate page number

currentPage=1

 

Create a button to browse to the next page with the following properties.  We will say for this example there are 3 screens.

Text: "Next Page"
OnSelect: Set(currentPage,Min(currentPage+1,3)
Visible: currentPage<>3

 

Create another button to browse to the previous page with the following properties.

 

Text: "Previous Page"
OnSelect: Set(currentPage,Max(currentPage-1,1)
Visible: currentPage<>1

 

 

Finally create a button to Submit the form with the following properties

Text: "Submit Form"
OnSelect: SubmitForm(your_form_name_here)

 

Let me know if you have questions.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

View solution in original post

Highlighted
Frequent Visitor

Re: Submit Multi Page form to a SharePoint list

Perfect! Thank you

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,015)