Welcome, Guest
Username: Password: Remember me

TOPIC: PHP-file: end of questionnaire

PHP-file: end of questionnaire 4 months 3 weeks ago #106777

  • hyllos
  • hyllos's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
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!
The administrator has disabled public write access.

PHP-file: end of questionnaire 4 months 3 weeks ago #106782

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2605
  • Thank you received: 302
  • Karma: 110
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 | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

PHP-file: end of questionnaire 4 months 3 weeks ago #106783

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2605
  • Thank you received: 302
  • Karma: 110
Have a look at the manual! It is a really valuable source for information. Here some helpful links:
Manual (EN) | Question Types | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

PHP-file: end of questionnaire 4 months 3 weeks ago #106784

  • holch
  • holch's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 2605
  • Thank you received: 302
  • Karma: 110
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 | Question Attributes | Workarounds

If you found this answer helpful and it saved you some time please consider a donation to the project to keep Limesurvey going!
The administrator has disabled public write access.

PHP-file: end of questionnaire 4 months 3 weeks ago #106788

  • hyllos
  • hyllos's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 5
  • Karma: 0
Many thanks, this should work and it's the easy way.
Sometimes you miss the forest for the trees...
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.109 seconds
Donation Image