Forum Discussion
TimNeill
10 years agoCommunity Member
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 ...
MecaContenidos
8 years agoCommunity Member
Hello. I need to pass the value from a custom variable named "NotaFinal" to my LMS through SCORM. That variable is the sum of all the correct questions, that also are custom made.
The value goes from 0 to 10.
Could anyone share with me a Java Script code to pass this variable to the LMS?.
Thank you very much.
GeorgeChamplin
8 years agoCommunity Member
Since the LMS is probably looking for a percentage score you can do this:
First initialize the api (seen above in my reply to Dave and Ed).
Then if the user got 8 of 10 correct, this will report 80%:
api.SetScore(NotaFinal * 10, 100, 0)
//this means (NotaFinal * 10, maxScore, minScore)
This may also work, but I haven't tried it:
api.SetScore(NotaFinal , 10, 0)
Related Content
- 10 months ago
- 10 months ago