Hi
I am setting up Limesurvey for a quiz using assessements. Each question has five answers (radiobuttons) with one correct answer. The correct answer has a assessement value of 1, all the others 0.
I have a question at the end summing up the result:
Your result: {sum(Q1.value, Q2.value, Q3.value)}
Would you like to see the correct answers?
In the next "question" I'd like to show the correct answer together with the respondents answer. I would also like to color the respondents answer green if it was correct and red if it was wrong. Is this possible? I've been searching the forum but haven't found anything on the topic. I've also tried some coding with htmlentities() but my experience with LimeSurvey isn't good enough to succeed.
The question would go something like this:
Correct answers:
Question 1: What is...
Correct answer: It's a... (Is there a way to get the answer with a specific index with EM?)
Your answer: {if(Q1.value = 1, text in green, text in red
This is where I'm stuck. Any help appreciated, just point me in the right direction