This may also help:
Setting up the DefaultMode: You can conditionally set the DefaultMode of the form to FormMode.Edit or FormMode.New based on whether gloCurrentItem is blank.
If(IsBlank(gloCurrentItem), FormMode.New, FormMode.Edit)
This should set the form mode to "New" if gloCurrentItem is blank, and to "Edit" if it's not.
Put this in the App OnStart if needed:
Set(gloCurrentItem, Blank())
Then click ellipses to right of App --> Run OnStrat to simulate running app from beginning while still in editor.
Adjusting OnSuccess: In the OnSuccess property, update gloCurrentItem as I have already suggested.
Set(gloCurrentItem, Self.LastSubmit)
Resetting the Form: If you are using a button to submit, consider resetting gloCurrentItem to blank when you want to insert a new record, with a reset button, on its OnSelect property:
Set(gloCurrentItem, Blank()); NewForm(YourFormName)
This will allow the form to be ready for a new submission since gloCurrentItem will be blank and DefaultMode will revert to FormMode.New.
And then I assume you already have a Submit button whose OnSelect may be:
SubmitForm(YourFormName)
See if it helps @wonka1234