Check out the LimeSurvey source code on GitHub!

PHP-file: end of questionnaire

More
2 years 9 months ago #106777 by hyllos
Hi,

At the end of a questionnaire LS normally redirects the participants to the ‘standard end’ (you successfully completed the questionnaire, your data have been saved, etc.).
I want to redirect them to an URL that displays an individualized analysis of the questions, but I don’t know in which php-file I can find the code for the automatic end of the questionnaire. Should be in Limesurvey>application>views>admins, shouldn’t it?

If possible I’d prefer to change it directly in php – can anyone please help me?

thanks!

Please Log in to join the conversation.

More
2 years 9 months ago #106782 by holch
Have you had a look at the "end url" feature? I think this is exactly what you are looking for, without having to change anything in PHP.

The respondent will be redirected to this URL and you can even add variables and responses to that URL.

Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 9 months ago #106783 by holch

Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 9 months ago #106784 by holch
Hmm, sorry!

I thought the end url would autmatically redirect, but it it doesn't.

You need to do one more step: General survey settings -> Presentation & Navigation -->
Automatically load URL when survey complete? --> Yes

If you have this setting, there will be no end message, but after submitting the survey the respondent will be redirected automatically to the end url.

Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 9 months ago #106788 by hyllos
Many thanks, this should work and it's the easy way.
Sometimes you miss the forest for the trees...

Please Log in to join the conversation.

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