Welcome, Guest
Username: Password: Remember me

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

Add 1 Point on each true answer and display with end message 2 years 3 months ago #79988

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

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #79997

  • VBraun
  • VBraun's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 4
  • Karma: 2
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
The administrator has disabled public write access.

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #80001

  • TMSWhite
  • TMSWhite's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 759
  • Thank you received: 82
  • Karma: 36
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}
The administrator has disabled public write access.

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #80012

  • hannan1
  • hannan1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
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: 2 years 3 months ago by hannan1.
The administrator has disabled public write access.

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #80014

  • VBraun
  • VBraun's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 41
  • Thank you received: 4
  • Karma: 2
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.
The administrator has disabled public write access.

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #80017

  • hannan1
  • hannan1's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
Thanks :)

Let me give it a try and write back.
The administrator has disabled public write access.

Re: Add 1 Point on each true answer and display with end message 2 years 3 months ago #80089

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
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)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.221 seconds
Donation Image