Forum Discussion
LMS Course Name JavaScript Action
Hi Craig! Sorry to reply to an old comment, but I'm curious about the method of "forcing completion" that you mention.
I need to use either a SL Block or a Custom Code Block in Rise to send completion for a successful pre-test. However if the pre-test is not passed, I need to fall back on sending completion with 100% viewed.
I tried using your SCORM2004_CallSetValue code, with no luck -- hoping you can provide more insight on this?
Which specification are you publishing to? If it were SCORM2004, then executing that SCORM2004_CallSetValue(... ' completed') should trigger a Completed status in a LMS.
If you published to SCORM1.2, then simply a
SCORM_SetCompleted("completed");
worked for me (testing a dummy course in SCORM Cloud). As I'm only familiar with Storyline, that has a Built-in variable called Quiz.ScorePercent. Do you have a trigger working on your results page which takes a passing score and send any message to the browser (ex., a javascript:alert()?) If you use your browser DevTools, the SCORM APIs are searchable - just hunt around.