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:

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