Redirect to different page after submitting an item to SharePoint 2013 list

Redirect to different page after submitting an item to SharePoint 2013 list

Here we will discuss how to redirect to a different page after the user submits an item to a SharePoint 2013 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.

In my previous post I showed: SharePoint 2013 redirect page to another page using JavaScript or jQuery.


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:

Step-1:
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 :

https://SiteURL/SitePages/ThankYou.aspx

Step-2:
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:

https://SiteURL/Lists/MyTestingList/NewForm.aspx?Source=https%3A%2F%2FSiteURL%2FLists%2FMyTestingList%2FAllItems%2Easpx&RootFolder=

Here notice the parameter “Source=” which has one URL assigned to it. Basical,ly that is the AllItems.aspx view URL. So when user Submits an item to the list, then user usually redirect to that page.

Now remove everything whatever presented after “Source=”. And then put your custom page URL which looks like below:

https://SiteURL/Lists/MyTestingList/NewForm.aspx?Source=https://SiteURL/SitePages/ThankYou.aspx

Here even you can put any external page like:

https://SiteURL/Lists/MyTestingList/NewForm.aspx?Source=http://www.enjoysharepoint.com

Step-3:
Then remove the +new item link which is presented in the list. You can follow this article to do that.

Step-4:
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 dialogboto x give one Title and in the URL put the URL which we have prepared in the Step-2 which will looks like below:

 Redirect to different page after submitting an item to SharePoint 2013 list
Redirect to different page after submitting an item to SharePoint 2013 list

After this you will be able to see the link in the left navigation like below:

 Redirect to different page after submitting an item to SharePoint 2016 list
Redirect to different page after submitting an item to SharePoint 2016 list

Read some more SharePoint customization tutorials below:

Now when user click the this navigation link then it will be redirected to the Add New Item page. There whenever user submit an item, he will be redirected to the page you have mentioned in the Source parameter. Hope this will be helpful to implement redirect to another page after submitting item to SharePoint 2013 list.

Check out Best Alternative to InfoPath -> Try Now

EnjoySharePoint YouTube Channel

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →