Use case: setting up a quiz.
Using Radio lists only.
All questions are coded A1, A2, A3 and A4 as answer options, where we repace the answer code of the correct option with a C.
Example (question code is q01):
q01 Which answer is correct?
A1 Wrong Answer 1
C Correct answer
A3 Wrong answer 2
A4 Wrong answer 3
In an evaluation afterwards I would like to show:
- the question {q01.question}
- the given answer {q01.shown}
- and an evaluation {if(q01=="C", "Correct answer", "Wrong answer")}
And when the answer given by the user was wrong I want to show what the correct answer was.
Something like: {if(q01!="C", "The correct answer is" q01_C.text, "")}
But I cannot find out how to display the text of the answer option given an answer code. Can anyone point me in the right direction?