Solved

Sending user to a custom page after survey completion in Sharepoint not Infopath?

Posted on 2009-04-08
2
828 Views
Last Modified: 2012-05-06
How to redirect a user in Sharepoint survey to a thank you page.
0
Comment
Question by:TTU_LAW_IT
2 Comments
 
LVL 15

Accepted Solution

by:
dp_expert earned 125 total points
ID: 24105526
Hello,

you just need to add folowing string to the link pointing to your form:
?source=<full address of the thankyou page>

(for ex. http://ww.domain.com/list/survey/addtem.aspx?source=http://www.domain.com/pages/thankyou.aspx

If you want to make sure, that the page will allways redirect to the thank you, you can add javascript that will make sure that you have redirection string in your URL (see the snippet). It works this way - checks if you have the source defined in your url and if not it redirects to the same page, adding the source part to the url. You have to modify the code to match your additem and thankyou pages
<script> 
url=window.location+"";
if (url.indexOf("?source=")<0)
{
	window.location=url.split("?")[0]+"?source="+url.split("additem.aspx")[0]+"thank_you.aspx"
	 
}
</script>

Open in new window

0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Scenario: Let’s say you have a quote worksheet in Excel that you use to work up sales figures and such for your clients. You utilize SharePoint to manage and keep track of these documents. You would like values from your worksheet to populate Sh…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question