Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Customize the end message based on a response to one question

Customize the end message based on a response to one question 2 years 3 months ago #110314

  • tbudelli
  • tbudelli's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
Good Afternoon,

I am working with LimeSurvey 1.92 and I was wondering if I could modified the end message text based on one response to the questions:

For example:

Question number 9:
Blah blah blah

Question number 10:
Are you smoking: Yes, No

Question number 11:
Blah blah blah


End Message:
If Yes to question 10: Well, we hope we will be able to help you quit press the following button to access this site:...

If No to question 10: Great! Hope you will keep on and resist temptation...you can check this site:...


Thanks for your help,
T.B.
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110346

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6308
  • Thank you received: 1407
  • Karma: 546
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 3 months ago by tpartner.
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110368

  • tbudelli
  • tbudelli's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
Thanks Tony for your quick reply. Unfortunately, I am stuck with 1.91+ and I do not think the EM are available on this version.
Can you think of any workaround? Or any customization I can do to the files to bring this feature to 1.91?

Thank you very much for your help!
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110369

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6308
  • Thank you received: 1407
  • Karma: 546
Oh, your initial post said 1.92. I don't have a solution for 1.91.
Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110370

  • tbudelli
  • tbudelli's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
:( Yes, I thought it was 1.92 but double checked and found out I am with 1.91

Do you know if there is a way I can customize the php files to add the EM feature only?

I don't think that upgrading is an option unfortunately right now...

Thanks again!
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110380

  • tbudelli
  • tbudelli's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 14
  • Thank you received: 1
  • Karma: 0
I am going to use some JS to do this with INSERTANS.
Is there a way to get the value of an INSERTANS for a specific question (LS 1.91) for all the survey that will be created?
If not, I will have to edit the code manually every time I create a survey based on the template.
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110388

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9346
  • Thank you received: 1338
  • Karma: 386
Not in LS1.91.

Best is to update to 2.05.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.

Customize the end message based on a response to one question 2 years 3 months ago #110395

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1825
  • Thank you received: 449
  • Karma: 111
Hi,
If your message is only based on this question (#10), you can enable assessments for this survey to display at the end of the survey the adapted texts and links depending on the score...

Are you smoking:
Yes ->1 point
No -> 0 point

assessment messages (included in the end page):
If score 0 point: Great! Hope you will keep on and resist temptation...you can check this site:...
If score 1 point: Well, we hope we will be able to help you quit press the following button to access this site:...
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.
Time to create page: 0.221 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form