Picture of L A
Setting a Course to Completed
by L A - Friday, 23 October 2015, 3:21 PM
 

Hi,

I would like to set a course to completed, regardless if the learner completed and/or passed the course.

With other authoring tools, I simply edit the SCORM file to set incomplete to complete. I cannot seem to find that in Adapt. I'm in the adapt.min.js file, which is where I see the SCORM elements and functions.

Can you please advise?

Thanks,

Laura

Picture of Matt Leathes
Re: Setting a Course to Completed
by Matt Leathes - Friday, 23 October 2015, 4:57 PM
 

I'm afraid this isn't supported out-of-the box.

Are you using the framework or the authoring tool to create your content? If the framework I can probably suggest a way of doing this...

Picture of L A
Re: Setting a Course to Completed
by L A - Friday, 23 October 2015, 5:01 PM
 

Hi Matt,

I'm using the framework.

Thanks,

Laura

Picture of Matt Leathes
Re: Setting a Course to Completed
by Matt Leathes - Friday, 23 October 2015, 5:51 PM
 

In that case, you need to edit the file src\extensions\adapt-contrib-spoor\js\adapt-contrib-spoor.js

In the function onConfigLoaded, add the following line:

scorm.setCompleted();

immediately after the line

scorm.initialize();

then run the $ grunt build task to compile your changes into your course.

Hope this helps

Picture of L A
Re: Setting a Course to Completed
by L A - Friday, 23 October 2015, 5:55 PM
 

Thank you so much!

That worked perfectly.

Laura