cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jamestredree
Level: Powered On

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
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
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

jamestredree
Level: Powered On

Re: Submit Multi Page form to a SharePoint list

Perfect! Thank you

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,051)