I created a new Screen with an EditForm set to mode "new".
I can submit the form just fine to create a new item in a SharePoint list but if i want to add another new item (go to the screen again)
its says: "Your data will be retrieved" (its translated so the actual message can be different) and nothing more happens.
If i restart the app again i can again add one item but then get the same error for the second one.
How can i fix this? Is there an option that im missing?
Solved! Go to Solution.
Be careful using that formula! SubmitForm will occur asynchronously. That means that NewForm can very easily occur before or during the actual Submit action. So, you run the risk of wiping out the data on the form before it is submitted.
Also...If there is an error in submitting, your NewForm function will occur anyway and will wipe out anything on the form - this can become very annoying to a user because they get NO indication that the submit failed and, even if they do, everything they entered will be gone, so they will not be able to correct and try again.
I would suggest putting the NewForm function into the OnSuccess action of the Form. This way it will put the form back into New mode IF the submit is successful.