Hi there,
I've set up a Power App which uses an EditForm to submit new items to a Sharepoint list for the purposes of timesheet entry. My original problem was that when I made a submission with the form, as soon as I submitted the first item, all of the data disappears from the fields and the user then needs to fill all the data out again on the second submission. Usually on the second submission, I was finding that the data remains in the fields so it doesn't need to be filled out again - but I would like this to happen on the first submission also.
Just to clarify, because with timesheets some of the data usually stays the same (such as user's name, work type, date etc.) I would prefer that the data fields remember the previous input and the user can tweak those fields to submit a new item.
As a solution, I began to use CurrentSubmittedRecord in the onSuccess field of the form, as well as giving the edit form (in FormMode.New) the item name of CurrentSubmittedRecord. While this seems to solve the problem above (because now whenever the user fills out the form and submits, the form remembers the previous record, the issue here is that new items are not submitted but overwrite the previous entries on Sharepoint - so the form seems to be changing into Edit Mode...?
My solution would be a situation where a user opens up the form, fills in the timesheet details, submits those details which logs item A on the Sharepoint Timesheet list. Then the user finds all the same data they just input remaining and can make tweaks to a specific field such as Job Number and hours, and hit submit, and this logs item B on the Sharepoint Timesheet list (without overwriting item A above).
N.B. Please note I also have a display form with the item name Form1.LastSubmit which displays details of the previous submission so users can see that their last entry has been logged on Sharepoint. I mention this so that it's taken into account with any suggestions.
Any thoughts would be greatly appreciated as I've been looking for a solution for a few days. Thank you.