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

There is a well known feature in SharePoint that allows you to specify in the URL where to go after a new/edit/display form is saved or closed by using the Source param - e.g.

http://yoursite/Lists/yourlist/NewForm.aspx?Source=http%3A%2F%2Fyoursite%2FThankYou.aspx

However this only works if the Source destination is on the same server - any ideas about how to rediect to a different site - e.g. http://google.com

share|improve this question

1 Answer 1

up vote 2 down vote accepted

How about bilding an application page and host in SharePoint, that onload does a Response.Redirect to your desired URL? Then you could just pass the url to this page as the Source parameter.

share|improve this answer
1  
Like it - nice and pragmatic solution to this, thnaks! –  Ryan Jun 24 '13 at 14:12
1  
You might even be able to pass in the url to redirect to from this page in a separate parameter, but I am not totally convinced that SharePoint will pass it on from the forms –  Robert Lindgren Jun 24 '13 at 14:14
1  
I added it passed as a param to the Source param url (i.e. uri encoded twice) and it was passed through. –  Ryan Jun 25 '13 at 12:48

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.