Forum Discussion
HelenBundock-d2
5 years agoCommunity Member
Using lmsAPI.GetScore();
Hi, We are creating a course that is in three parts, each part can be completed separately and only one part is to be attempted in the one year. On returning to the course we would like the course...
AndyKerslake
3 years agoCommunity Member
Sam/Helen
Great thread - thanks for the advice.
I am trying to acheive something very similiar as outlined above. I want a previously scored quiz score to be displayed. When i initally run the javascript, NaN is returned (even though the quiz has previously been completed). I've tried using parseInt() to convert whatever is returned into a number, but doesnt work.
I am forced to complete the quiz again, before the score is returned which negates what i am trying to achieve (return the score from a previous attempt).
The code works, but only once the quiz has been completed within the session running. Can you think why the code doesnt recall the score from an earlier attempt?
Thank you in advance if you do have any ideas...
Andy