Current setup: User is redirected to page after saving newform, which then directs them to the edit form of the item just created.
Problem: there is a workflow that is started when an item is created. User gets redirected to the editform before the workflow completes, therefore an error is received when saving.
Unsure if this would be a solution, but I'm thinking if I can hold the user on the redirect page for 5 seconds or so, it would allow the workflow to complete before the user gets to the editform.
How can I set a timer on the page?
Current script on the redirect page: