Forum Discussion
InfoPath form - redirect to new page on submit
What you've described is what we've already done. My apologies, I probably didn't explain very well. The home page of the SharePoint site is just a form web part showing the InfoPath form (edit view). When users clicks on the submit button, the submit view appears in the web part. The problem is getting it to automatically go back to the edit view after a few seconds. The developer placed a redirect script on the homepage... but what that does is refreshes the page every 10 seconds or so, and a user could be in the middle of filling out the survey when the screen refreshes. Plus it's annoying to see the screen blink every 10 seconds!
No worries Allison.
So, in actual fact the submit view does nothing? Just has some information on it?
Rather than have auto refresh on the page, could you not add a link or button the user would need to click on which then refreshes the page?
- Allison RizakMay 30, 2017Brass Contributor
That's correct, the submit view does nothing, it's basically a thank you/confirmation message. Client doesn't want the user to have to click on anything to go back to the form, he wants it to be automatic.
- AnonymousMay 30, 2017
Ok, so rather than an auto refresh then, you need an event, followed by a delay and then the action of refreshing the page.
Can your SharePoint support team not create an onclick event using Javascript?