This SharePoint tutorial explains, how to redirect to a different page after the user submits an item to a SharePoint 2013/2016 list.
By default when the user submits an item to a SharePoint 2013 list, it redirects to the AllItems.aspx page (AllItems view page).
But my requirement is after the user submits the item it should go to a Thank you page (custom site page created to display a thank you message).
By using this tricky approach we can easily redirect to a different page after adding or submitting an item to a SharePoint 2013/2016 or Online list.
This might not be the best approach and one of the solutions you can try out. Here are a few things involved in this process:
Make sure you have your custom page is ready where you want your user to navigate after adding the item. I have just created one site page and URL is :
Then open your SharePoint 2013 list and then click on a +new item (to add an item to the list). Then copy the URL from the browser. It will be something like below:
Here notice the parameter “Source=” which has one URL assigned to it. Basically that is the AllItems.aspx view URL. So when the user Submits an item to the list, then the user usually redirects to that page.
Now remove everything presented after “Source=”. And then put your custom page URL which looks like below:
Here even you can put any external page like:
Then remove the +new item link which is presented in the list. You can follow this article to do that.
Now we give an option in the left navigation to add an item to the list.
Open your site, from the Settings icon click on Site Settings. Then in the Site Settings page, click on Navigation under Look and Feel.
Here go to “Structural Navigation: Editing and Sorting” section in the Navigation Settings page.
Here click on the Add Link and then in the Navigation Setting dialog box to give one Title and in the URL put the URL which we have prepared in the Step-2 which will look like below:
After this you will be able to see the link in the left navigation like below:
You may like following SharePoint tutorials:
- SharePoint 2013 Create Custom Save and Redirect Button On A SharePoint Form
- SharePoint Online redirect to another page programmatically
- How to include jQuery in SharePoint
- How to Change SharePoint Site Logo + PowerShell
- How to Change favicon in SharePoint Online/2013/2016
Now when the user clicks this navigation link then it will be redirected to the Add New Item page.
There whenever a user submits an item, he will be redirected to the page you have mentioned in the Source parameter. I hope this will be helpful to implement a redirect to another page after submitting an item to the SharePoint 2013 list.
Bhawana Rathore is a Microsoft MVP (3 times in Office Apps & Services) and a passionate SharePoint Consultant, having around 10 years of IT experience in the industry, as well as in .Net technologies. She likes to share her technical expertise in EnjoySharePoint.com and SPGuides.com