Java Script for Submitting Test Score and Pass/Fail in Tin Can Project
Apr 05, 2022
I am a fairly new user of SL and I am trying to figure out how to submit both a tests score and a pass or fail status to an LMS.
I've tried using the provided triggers, quiz settings and tracking/publish settings and even variables.
If I set tracking to quiz results, set the quiz as final exam, a passing score of 75%, the course only completes when the exam is passed.
I tried adding a complete/pass and complete/fail trigger with if's that depend on the score to no avail. In tracking it says that whichever comes first, a test completion or completing trigger. If I arrange the trigger first then the score doesn't show up in the LMS.
Is there a bit of Java that I can execute that will send the pass/fail, test score, and even the passing score to the LMS all at the same time?
1 Reply
Hi, Brock.
Thank you for reaching out!
You should be able to track all this information with SCORM. Take a look below:
If you look at your publishing settings, which reporting option did you pick?
If you use Passed/Failed, the report will show completed as long as the learners finish the quiz (regardless of the result). When you select Passed/Incomplete, the completion will be connected to learners passing the quiz.
I hope this helps!