Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

How to show overall score of correct answers?

  • mariaa
  • mariaa's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
5 years 8 months ago #180578 by mariaa
Dear all,


I´ve created a quiz. On the last page I´d like to create a summary that shows how many answers the participant has answered correctly like this:


"You scored correctly on 4 of the 13 questions."

How do I generate this overview? Unfortunately it´s not possible to do this with the assessment function since I´m using question types like ranking and numerical input that are excluded from this function.

I understand that somehow I need to define the correct answer for each question but I´m not sure about how exactly the syntax needs to be adjusted.

This is my first approach (I already succeeded at creating a syntax in order to show the participant whether he answered correctly.)


if( ! is_empty(A1_SQ001.NAOK) and is_empty(A1_SQ002.NAOK) and is_empty(A1_SQ003.NAOK) and ! is_empty(A1_SQ004.NAOK), "That is the correct answer.", "That is the false answer. The correct answer is..")



But I am not sure how I can define in lime survey what is right and what is wrong and how to generate the overview "You scored correctly on 4 of the 13 questions."

What would the syntax look like for this?


Thanks a lot for your help


Kind regards and have a nice weekend


Maria
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose