« March 2008 | Main | October 2008 »

April 26, 2008

Captivate 3 Quizzes marking "failed" when quiz is not completed

We use Captivate 3 quizzes sometimes with our Docent 6.5 LMS. Usually the quizzes have multiple parts or "SCOs" but occasionally we build one that has only one part.

Sometimes people launch a quiz but need to quit before they are done taking it, and in such cases we would prefer it be marked "incomplete" and allow them another chance to take the quiz. Usually we would also prefer any failed quiz to be allowed to be retaken.

But, by default, Captivate sees any failure to reach the mastery score as completions.

There is an easy fix,
suggested by Franck Buland on the Adobe Captivate forums

simply modify the [project].htm file at lines 95, 96, 97.

Change this:

} else if ( strFSCmd == "LMSSetValue" || strFSCmd=="SetValue") {
strErr = eval('g_objAPI.' + strFSCmd + '(\"' + strFSArg1 + '\",\"' + strFSArg2 + '\");');
CaptivateObj.SetVariable(strFSArg3, strErr);

to this:

} else if ( strFSCmd == "LMSSetValue" || strFSCmd=="SetValue") {
if (strFSArg1=="cmi.core.lesson_status") {
if (strFSArg2 == "failed") strFSArg2 ="incomplete";
}

strErr = eval('g_objAPI.' + strFSCmd + '(\"' + strFSArg1 + '\",\"' + strFSArg2 + '\");');
CaptivateObj.SetVariable(strFSArg3, strErr);

The bold text is what is inserted. It tests the value of what the captivate quiz is sending for cmi.core.lesson_status. If it is failed, it is changed to "incomplete".

Posted by emeiselm at 04:29 PM | Comments (0)