Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a sharepoint list containing items. If I add a new item or edit an existing item in browser and click the “Save ” button I come back to the list again.

How can I be redirected to a specific sharepoint site/page (i.e. Home) after I clicked the “Save ” button.

Is there a workaround?

Thanks

share|improve this question
add comment

3 Answers

You need to add a parameter in the URL :

http://mysite/myweb/mylist/NewForm.aspx?Source=http://google.com

You will then be redirected to Google.com.

share|improve this answer
    
But i can not tell thousands of users to put the "&Source=mysite.com"; in the url every time if they add or edit the item. How can i automate so that if they click Save and are redirected to for example home.aspx Thanks. –  user2524 Feb 26 '11 at 21:04
    
This won't work when going to a different site (e.g. not mysite) –  Ryan Jun 24 '13 at 12:14
add comment

I use the SPServices to do this; more specifically the SPRedirectWithID function. I have used Content Editor Web Parts (CEWP) as well as customizing the NewForm.aspx in SharePoint Designer. (Thanks to Marc Andersen for this library! It has been a critical tool in my SP bag.)

share|improve this answer
add comment

If you're wanting to redirect users, you have a couple actions available to you.

If you are linking users to a new/edit form on the quick launch or some other place on the page, you or the content owners can create the redirect in the URL and users won't need to append it to the URL.

Create custom New/Edit forms in Sharepoint Designer. Replace the stock Sharepoint button controls with Input buttons and add your own redirect code.

The save/cancel buttons on lists and libraries is going to take to you the default view. If you don't want users to see that, you can create a view that displays nothing, or is automatically filtered by things they've created, or delete the list view web part entirely. You could then put some script on the page to redirect users automatically if Sharepoint Designer is not available for you.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.