Forum Discussion

SharonKeung-dc7's avatar
SharonKeung-dc7
Community Member
9 months ago

Need to send a score to LMS

Hi, I have built an assessment in Storyline which is a simulation where learner's need to click the correct options on each screen.

I have 19 slides. Due to the nature of the scoring I have had to set up my own variables. To get the final percentage I have created a number of variables.

Current mechanism set:

  1. If the learner click on the correct hotspot in the question, 100 points will be added to variable 'MRScore'. For some questions, there are 2 steps, then the learner will get 50 points if they click correctly for first step and another 50 points if answer second step correctly.
  2. I didn't set the slides as freeform questions as I have added hints for some questions. The hints are set to be shown after 10 seconds. If the learner is able to click on the correct hotspot within 10s, they will get the full 100 points. They will not get 100 points if the hint is shown.
  3. Maximum score will be 1900 as there are 19 questions.

What I want to achieve:

  1. Sending the Percentage variable to our LMS (the LMS can support SCORM 1.2 and TinCan). I tried to use JavaScript to send the variable which doesn't work.
  2. Passing percentage: 50%

Can anyone please advise me on sending the percentage to the LMS? I'm very new to JavaScript and have read multiple threads trying to figure this out but still no luck. I have attached a screenshot of my triggers and JavaScript. Any help would be much appreciated!

Sharon