Forum Discussion
LuisGomez-bb5a4
4 years agoCommunity Member
Register in an LMS the highest score of 2 possible attempts
Hello, I have a question, i need to register in an LMS the highest score of 2 possible attempts of a quiz, but I have not been able to do it, I only register the last score obtained, can you help me...
ScottWiley1
2 years agoCommunity Member
You can apply that JavaScript from anywhere in your course. But likely it would make the most sense to have a final/last landing page from where you can trigger the JS to set the final score.
// get LMS API
var lmsAPI = parent;// set score; the first number is the score
// lmsAPI.SetPointBasedScore(intScore, maxScore, intMinScore);
lmsAPI.SetPointBasedScore(yourVariableHere, 100, 0);