I recently had to try to force a user to take a new attempt of a SCORM using M1.9.6. Unfortunately, the "Force New Attempt" option wasn't available until M2.x. I asked for help here, and scoured the forums. I ended up figuring it out on my own, and decided to share it here in case there are others in the same boat. See the original post here .
The fix I found is to force the checkbox to stay checked for "Start a new attempt" this was done by modifying:
<input type="checkbox" id="a" name="newattempt" />
to
<input type="checkbox" id="a" name="newattempt" checked="checked" onclick="return false" />
in mod\scorm\locallib.php. The box appears with a checked value, and is unable to be unchecked.
And, to force the user to use the Enter button and actually start a new attempt everytime, I modified:
$result->toc .= $statusicon.' '.$startbold.'<a href="'.$url.'">'.format_string($sco->title).'</a>'.$score.$endbold."</li>\n";
to
$result->toc .= $statusicon.' '.$score.$endbold."</li>\n";
in mod\scorm\datamodels\scorm_12lib.php.
I hope this helps someone else!
Jeff