Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-04-08
2
Medium Priority
?
840 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 500 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

Question has a verified solution.

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

I thought I'd write this up for anyone who has a request to create an anonymous whistle-blower-type submission form created using SharePoint 2010 (this would probably work the same for 2013). It's not 100% fool-proof but it's as close as you can get…
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

972 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