Forum Discussion
CameronHallo868
2 years agoCommunity Member
GetScore from Moodle
I am trying to have when students retry an activity they have their current best score displayed as an incentive.
I am struggling to get the GetScore(); value to return the previous highest score ...
CameronHallo868
2 years agoCommunity Member
Thanks Jurgen for the reply I have tried your solution without any joy. I am using Moodle 3.9 as the LMS and have tried both 1.2 and 2004 SCORMS.
This code gives a blank value in the console.log
And just this code tells me it isn't a function.
var myScore = lmsAPI.GetScore();
console.log("mm "+myScore);
Sorry obivously doing something basic wrong.