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

More
5 years 2 weeks ago #79988 by hannan1
hannan1 created the topic: Add 1 Point on each true answer and display with end message
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
5 years 2 weeks ago #79997 by VBraun
VBraun replied the topic: Add 1 Point on each true answer and display with end message
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
5 years 2 weeks ago #80001 by TMSWhite
TMSWhite replied the topic: Add 1 Point on each true answer and display with end message
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
5 years 2 weeks ago - 5 years 2 weeks ago #80012 by hannan1
hannan1 replied the topic: Add 1 Point on each true answer and display with end message
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: 5 years 2 weeks ago by hannan1.

Please Log in to join the conversation.

More
5 years 2 weeks ago #80014 by VBraun
VBraun replied the topic: Add 1 Point on each true answer and display with end message
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
5 years 2 weeks ago #80017 by hannan1
hannan1 replied the topic: Add 1 Point on each true answer and display with end message
Thanks :)

Let me give it a try and write back.

Please Log in to join the conversation.

More
5 years 2 weeks ago #80089 by Mazi
Mazi replied the topic: Add 1 Point on each true answer and display with end message

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.

Start now!

Just create your account and start using Limesurvey today.

Register now