Forum Discussion
InfoPath form - redirect to new page on submit
Hi Allison,
Just want to clarify first....
You have one form with 3 questions.....on clicking submit....you want a secondary form to appear on screen (you mentioned a submit form)?
If this is correct - is there any issue with saving the details from both survey and submit forms in the same list?
If not, why not just create another view in infopath called 'submit', add in your form fields for this form as required....
On your survey form, on the submit button (on click) change the view to the submit view?
If I have misunderstood, apologies.
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!
- DeletedMay 30, 2017
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.
- DeletedMay 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?