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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / MultiPage Form not beh...
Power Apps
Answered

MultiPage Form not behaving as expected

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi all, I am very much a newbie when it comes to PowerApps and SharePoint lists, but I'm finding it all very interesting.

 

I have created a SharePoint list with quite a lot of columns and wanted to create a PowerApp to fill in new records from a mobile phone. I followed a good tutorial from April Dunnam (https://www.youtube.com/watch?v=N8AsxE__Mw8) on YouTube and learned a couple of things along the way.

 

My layout is:

MikeBurton2000_0-1624614568595.png

LandingPageGallery is a gallery of the existing results in the SharePoint List.

ViewDetails is a page that clicking on an existing entry takes you to and displays certain fields from that selection

NewRecord is the page where you can create a new entry for the list via the StartNewRecordForm form.

Each page after that is a continuation of the SharePoint list with the columns in logical groups on the forms.

Finally, a FinshScreen confirms the entry and allows you to return to the LandingPageGallery.

 

On the LandingPageGallery an icon ("+") is used to instigate a New Record. Clicking the Icon takes you to the NewRecord page. The "+" Icon has the OnSelect value <Set(formTypeVar,"New"); Navigate(NewRecord, ScreenTransition.Fade)>

 

On the NewRecord page, the form StartnewRecordForm has:

DefaultMode <Set(formTypeVar,"New"); Set(selectedItemVar,StartNewRecordForm.LastSubmit); Navigate(Performance, ScreenTransition.Fade)>

OnSuccess <Set(formTypeVar,"Edit");Set(selectedItemVar,StartNewRecordForm.LastSubmit); Navigate(Performance, ScreenTransition.Fade)>

Item <Defaults('Engineer Visits Reports - List')>

DataSource <'Engineer Visits Reports - List'>

This page also has a next page icon ">" and it has the OnSelect value <SubmitForm(StartNewRecordForm);>

 

The next page icon opens the following "Performance" page. The PerformanceForm has:

DefaultMode <If(formTypeVar = "New", FormMode.New, FormMode.Edit)>

OnSuccess <Set(selectedItemVar,PerformanceForm.LastSubmit); Navigate(UniformToolsEq, ScreenTransition.Fade)>

Item <Defaults('Engineer Visits Reports - List')>

DataSource <'Engineer Visits Reports - List'>

This page also has a next page icon ">" and it has the OnSelect value <SubmitForm(PerformanceForm);>

 

Each subsequent page has settings following a similar pattern. The issue I am finding is that the submission of each page when clicking the ">" button creates a new line in the SharePoint list. The data goes into the correct columns, but on a new line - as if the FormMode is not changed from New to Edit after the first StartNewRecordForm submission.

 

I also noted that when editing an existing entry, the submission button also create a new entry but with any changes made reflected in the new entry. I hope the above is sufficient for one of you more knowledgeable people to be able to help me understand what I did wrong or maybe even suggest a better way of doing it altogether. I am not averse to binning the whole thing so all thoughts and suggestions will be greatly appreciated.

 

Many thanks in advance to all those who chose to help nuggets like me and to all those who post tutorials and helps that so many of the newbies like me rely on to get us started.

 

Warm Regards

Mike

 

 

 

Categories:
  • Verified answer
    Al_10 Profile Picture
    1,691 Super User 2024 Season 1 on at

    @MikeBurton2000 

     

    StartnewRecordForm.DefaultMode = If(formTypeVar = "New", FormMode.New, FormMode.Edit)
    StartnewRecordForm.Item = If(formTypeVar = "New", Defaults('Engineer Visits Reports - List'), selectedItemVar)

     

    PerformanceForm.DefaultMode = If(formTypeVar = "New", FormMode.New, FormMode.Edit)
    PerformanceForm.Item = If(formTypeVar = "New", Defaults('Engineer Visits Reports - List'), selectedItemVar)

     

    the same settings are for any other form

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you Alex_10, that it working as hoped. Easy when you know how eh? 😉 

     

    Many thanks for your help. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard