Check out the LimeSurvey source code on GitHub!

Customize the end message based on a response to one question

More
2 years 7 months ago #110314 by tbudelli
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.

Please Log in to join the conversation.

More
2 years 7 months ago - 2 years 7 months ago #110346 by tpartner

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last Edit: 2 years 7 months ago by tpartner.

Please Log in to join the conversation.

More
2 years 7 months ago #110368 by tbudelli
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!

Please Log in to join the conversation.

More
2 years 7 months ago #110369 by tpartner
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.

Please Log in to join the conversation.

More
2 years 7 months ago #110370 by tbudelli
:( 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!

Please Log in to join the conversation.

More
2 years 7 months ago #110380 by tbudelli
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.

Please Log in to join the conversation.

More
2 years 7 months ago #110388 by DenisChenu
Not in LS1.91.

Best is to update to 2.05.

Denis

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
2 years 7 months ago #110395 by Ben_V
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
Last Releases => 2.6x.x goo.gl/ztWfIV | 2.06/2.6.x => bit.ly/1Qv44A1
Demo Surveys => goo.gl/HuR6Xe (already included in /docs/demosurveys)

Please Log in to join the conversation.

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