Scenario 4

The SCO in this scenario consists of a four-step process for printing a Word document. Once the learner clicks print in Step 3, the SCO is considered completed. If the learner only makes it through Steps 1 and 2, then the SCO Completion Status is considered unknown.
An image of a SCO represented by four boxes each containing a step in the process. Step 1: Open Doc. Step 2: Print Preview Doc. Step 3: Click Print. Step 4: Retrieve From Printer.

6. Complete the code below used to set the Completion Status for this scenario:

// hasPrinted is initially set to false, when the user
// presses the Print button the variable is set to true.
var hasPrinted = false;

function setStatus(hasPrinted)
{
if(hasPrinted)
{
SetValue( "cmi.completion_status", "");
}
else
{
SetValue("cmi.completion_status", "");
}
}
Click Submit after you complete the code.