HOME ➔ SUPPORT ➔ Community ➔ General CourseLab issues ... Single choice quiz
Single choice quiz
  View type:
Hello,

I am creating some single answer questions and was wondering if there was a way to keep track of which answer is chosen and at the end, display to the user which of the answers they chose most? For example, if they choose option A for each question more than B or C, it would tell them.

Thanks, Rowan.
 
This might help you:
(question has Identifier 'myQuestion')
Action on question, 'on Question Answered'
javascript
var oCurObj = document.getElementById('myQuestion');
alert(oCurObj.q_varselected);

This gives a '0' for the first button, '1'for the second etc. I don't know how it changes if you shuffle answers.

Somewhere on this forum you can read how to save a value from javascript to a Courselab variable. From there you can use standard CL scripting.
[:cool:]
Subject:
Message options
No additional options