Check out the LimeSurvey source code on GitHub!

Add 1 Point on each true answer and display with end message

More
4 years 8 months ago #79988 by hannan1
Hi,

I want to add 1 point with each "true" answer and display total points with end message. I think Expression Manager can handle this. Can anyone please tell me how?

Thanks.

Please Log in to join the conversation.

More
4 years 8 months ago #79997 by VBraun
Hi,
frankly I am not sure how to achieve it with Expression manager, but old Assessment should be able to deliver this functionality quite easily.

docs.limesurvey.org/Assessments&structur...tions+for+LimeSurvey

Please Log in to join the conversation.

More
4 years 8 months ago #80001 by TMSWhite
Assessments should work.

However, if you want to use EM, you'd do it this way.

Say you have 5 questions, q1-q5; and each question has 5 answer options, a-e; and say the "true" answers for q1-q5 are a-e, respectively. Then, create an Equation question type, total_score, with this question text:
{sum(q1=='a',q2=='b',q3=='c',q4=='d',q5=='e')}

And insert the message on the last page like this:
Your total score was {total_score}

Please Log in to join the conversation.

More
4 years 8 months ago - 4 years 8 months ago #80012 by hannan1
I am not bound to EM.

I have only two answer options Yes/No. How can I use Assessment or EM for that?
Last Edit: 4 years 8 months ago by hannan1.

Please Log in to join the conversation.

More
4 years 8 months ago #80014 by VBraun
For the assessment read the documentation at link, which I posted.

For the EM, there must be a way how to check whether Yes or No was answered and then you can use logic posted above, there is many EM examples available for download to play with.

Please Log in to join the conversation.

More
4 years 8 months ago #80017 by hannan1
Thanks :)

Let me give it a try and write back.

Please Log in to join the conversation.

More
4 years 8 months ago #80089 by Mazi

hannan1 wrote: Thanks :)

Let me give it a try and write back.

You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to give Limesurvey a future .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.


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.

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