Forum Discussion
AdamTrosper
7 years agoCommunity Member
Hi Shane,
Thank you for the kind words! My guess is that you might be using a "Passed/Failed" instead of a "Completed/Failed".
I would recommend trying to call the following instead:
lmsAPI.SetPassed();
If you are looking for the different options you should be able to use with lmsAPI, here is the switch statement in the lms.js code, which I used as the basis of the code I wrote:
switch (strStatus){
case "complete":
case "completed":
lmsAPI.SetReachedEnd();
break;
case "incomplete":
lmsAPI.ResetStatus();
break;
case "not attempted":
break;
case "failed":
lmsAPI.SetFailed();
break;
case "passed":
lmsAPI.SetPassed();
break;
}
Good luck!