Forum Discussion
Setting 'Results.ScorePoints' to equal my custom score variable
This subject seems to have been discussed for several years (which suggests a SL improvement is needed ...) but I would appreciate some guidance.
I will have 10 custom quiz questions which can't be handled by standard SL quiz types (individual answer scoring and ticks/crosses within each question screen).
I accumulate the score from these 10 in a variable called 'My_Score'. I will also have another 30 questions which will use SL question templates and which accumulate their overall score in 'Results.ScorePoints'.
So when I reach the Results slide I have my custom variable plus the SL 'Results.ScorePoints' variable. I can add them together with a Trigger to make 'My_Score' equal to the total score for all 40 questions but what is the simplest way to get this variable back into 'Results.ScorePoints' so that it appears in the Results and goes back to the SCORM LMS?
Could I force a 'dummy' quiz question with a data entry field to be set to the 'My_Score' value, so that the 'Results.ScorePoints' takes on this value?
JavaScript I don't believe can modify the 'Results.ScorePoints' variable?
Many thanks, Tim
29 Replies
- TimNeillCommunity Member
That's brilliant, thanks Dave for taking the time and trouble to explain this process. I'll give it a go ...
- EdCrane-1026e64Community Member
This works well! Thanks!
- EdCrane-1026e64Community Member
I've found that with 2 out of the 3 LMSs that I've uploaded my course to that uses Dave's Javascipt that the course does send the correct score, but it is apparently not enough for the LMS to consider the course to be completed. For example, I uploaded to SCORM Cloud, and achieved a score of 80%, which is the minimum to pass. SCORM Cloud showed that I got 80%, but also showed the completion as "incomplete" and the success as "unknown."
With our LMS for our internal users, it's showing as complete.
In the reporting options, I have "Report status to LMS as:" set to Completed/Incomplete. Any ideas?
Hey Ed,
I can see that you’re still struggling with tracking completion with Javascript since you reached out here and in this other discussion. I’d love to help. Can you take a look at the questions I asked in the other discussion? We can keep the conversation going over there!
- EdCrane-1026e64Community Member
OK, though I did copy and paste Dave's JavaScipt from the discussion above, so I thought it would be relevant to this thread as well.
Ah, I see! Dave posted that code prior to the release of Storyline 360. We're seeing an issue where the Javascript code to send completion status to the LMS no longer works in Storyline 360 when you're using HTML5.
I'll let you know as soon as we get an update on this!
- yusufafandiCommunity Member
is this a bug? or articulate just didn't support for sending completion via javascript anymore?
Hello Yusuf!
We do not support JavaScript typically. As Alyssa mentioned, we realize previously used code is no longer working and we do have our team taking a look as this impacted many.
By replying, you should be subscribed to this thread so that you can get an update when applicable.
- DylanPostCommunity Member
If anyone is having trouble with this still, I have used custom questions in the past and have handed the scores by creating null standard questions to respond to variable states. For example:
If I have a custom question, I have the interaction set it's custom variable (say Interaction_1) to whatever I need. (If it is a simple binary choice, it can be a true false variable, otherwise, a specific numeric value will do just fine.) Rinse and repeat for all custom questions. Then, just before going to the results slide, I create a series of multiple choice/true false questions that have point values that correspond with what I wanted my custom interactions to be. Using timeline start triggers and if/than statements, I have the slides "auto" answer based on the variable states. When the question is answered, I use another trigger to automatically advance to the next.
It's not the most elegant solution, but it plays within the boundaries of Storyline. You can even cover up the slides with a loading progression so the learner never sees the back end.
I will create a mock example and upload it later today. (Because I'm sure my description is confusing as all get-out.)
- DylanPostCommunity Member
Correction, I haven't done this without binary choices and as SL doesn't support partial credit, you would need to have a "true" and "false" statement.
Thanks Dylan for sharing here - always great to have these examples mocked up for other users as well!
Related Content
- 10 months ago
- 10 months ago