Check out the LimeSurvey source code on GitHub!

Redirect after time to URL (THANKS SCREEN)

More
5 years 11 months ago #58441 by vadindot
My latest request....

This is for an open survey, once the respondent gets to the "THANKS" screen, we'd like it to wait 5 seconds and then redirect back to the beginning for the next person. My client still wants the "THANKS" screen (I already recommended just redirecting after hitting SUBMIT).

Please Log in to join the conversation.

More
5 years 11 months ago #58449 by Mazi
You should be able to add some Javascript to the thanks message and after X seconds the script redirects the user to a predefined URL. Should be no more than 5-6 lines of code, Google is your friend...


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 11 months ago #58465 by tpartner
Add something like this to the end message.
<script type="text/javascript" charset="utf-8">
 
	$(document).ready(function(){
 
		var url = 'http://somesurveysite.com/limesurvey//index.php?sid=12345&newtest=Y&lang=en';
 
		setTimeout(function() { 
			window.location.replace(url);
		}, 5000);
	});
 
</script>

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form