Forum Discussion

ChabelSantac416's avatar
ChabelSantac416
Community Member
2 months ago

Course marking as complete when it shouldnt?

Hi all! 

I have just finished the attached, it's a 'refresher module' where the learner gets given the option to complete an assessment at the beginning and if they fail it twice, they are then directed back to the LMS to complete a different course via a hyperlink on the last trigger... the problem I am experiencing with this and can't figure out is the following:

- If the learner passes the quiz the first or second time, they are marked as complete (which is what I want to happen)

-But if they don't pass and instead go onto the hyperlink, they should be marked as failed or incomplete however it's currently registering as complete.

What do I need to change to make it so that the LMS (totara) does not mark as complete if the learner gets to the hyperlink (does not pass the first or second time)? Any help appreciated! 

PS. if you test the file you'll also see that after failing the first time, the course will show the learner remediation slides with info on their specifics gaps, then you complete the assessment again but I can't think of any triggers that would affect it here (though unsure now!)

2 Replies

  • JoeFrancis's avatar
    JoeFrancis
    Community Member

    Keep in mind, "failed" is a completed status, as are "passed" and "completed." In SCORM 1.2, cmi.core.lesson_status is used to set and retrieve that value. A status of "incomplete" indicates the learner has not completed the requirements of the content object and is allowed to re-attempt/continue it.

    SCORM 2004 separates completion and success statuses, but to prevent access to the content object after the second failed attempt, you would still have to set cmi.completion_status to "completed" and cmi.success_status to "failed."

    In either case, you would want to set that value before the learner clicks the hyperlink, as no further processing will happen once he/she exits the content object.