Solved

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

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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Note:  There are two main ways to deploy InfoPath forms:  Server-side and directly through the SharePoint site.  Deploying a server-side InfoPath form means the form is approved by the Administrator, thus allowing greater functionality in the form. …
I used to be SharePoint evangelist in our company, so my Outlook always full of questions about how to do this, or where I can find that. One day I found such an email with the following question: "how to attach 3-State workflow (one of the workflow…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

821 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