Solved

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

Posted on 2009-04-08
2
826 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Last week I faced a strange issue recently, i have deployed SharePoint 2003 servers for one project and one of the requirements was to open SharePoint site from same server. when i was trying to open site from the same server i was getting authentic…
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…
This video discusses moving either the default database or any database to a new volume.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now