Forum Discussion
DianeWestern-0d
2 hours agoCommunity Member
SL: JavaScript to send Numerical score to LMS (Scorm 1.2)
Hi,
Looking for clear cut example of sending a quiz score to an LMS; the LMS can only handle SCORM 1.2. (eFront)
- I've been trying JavaScript.
- (And yes, have read that some LMS systems cannot display the score without an API onboard. I am testing & just trying to get correct code, and go from there.)
- Have read dozens of posts that contain partial snippets of answers; have tried many of the JavaScript solutions, but unable to figure this out.
- Have read that the SL generated variable (Quiz1.ScorePoints) cannot be directly sent to the LMS, but rather, should be moved to a newly created variable. Will be working on that next. The example posted was not easy for me to understand, so if that is the best solution, would appreciate a simple example for a rookie.
- In addition, I believe I need the publish settings, too; not sure yet, but seems to me -- that those settings must be set in a specific way, or even though the JS is correct, the settings will prevent the score from being sent to LMS. So, this endeavor seems to be further complicated by not knowing which settings will send a numerical score, such as Quiz1.ScorePoints -- to the LMS - if JS is correct.
- Very rusty w/JavaScript (due to many years of not using former beginner skills).
- (One post indicates this is not possible (send point score to a SCORM 1.2 LMS, and that we should use a Short Survey question as a workaround and move the variable over that way;) however, ShortSurveys seem to use Text-based variables, and I need to use a numerical field to move the variable to the LMS.)
- (Unable to view CONSOLE while testing - another caveat that makes this tricky.)
Anyway, if someone could point me to a post with a code snippet, that would be helpful.
Thank you very much!
- SamHillSuper Hero
Hi DianeWestern-0d you shouldn't need to get your hands dirty with JS. If you have a quiz in your module, and the quiz questions are processed by a results slide, the SCORE will be sent to the LMS. Ensure the SCORM 1.2 publish settings are set to "When the learner completes a quiz" under the Tracking tab.
Here's a quick video demo:https://app.screencast.com/dZY1HKfV40p0o
And the demo Storyline file attached.