5 Replies
Jason Moore

Hi Alyssa,

Thanks for getting back to me. A "passing" score would require the learner to complete the quiz with a score of 100%.

My client has setup their LMS to send an email to a manager if the learner completes and fails a quiz, but many learners are not completing the quiz and it just sits there unfinished. So, they want to somehow force the quiz to fail if the user exits before completing.

I've suggested setting a due date in the LMS as a workaround, but I was hoping there was a solution on the content side.

Jason Moore

Hi Jason,

Thanks for contacting Articulate Support!

By default, Storyline questions will be submitted one at a time for evaluation and feedback, then upon reaching the Result Slide, a Submit Results trigger is executed to evaluate the score and recommend a status. However, there is no option to automatically trigger a Submit Results when the user exits or closes the browser window. The Submit Results trigger must be executed from a button or timeline.

For your information here's how you can submit all questions at the same time if you'd prefer. Here's how: http://community.articulate.com/tutorials/products/submitting-answers-all-at-once.aspx

You can use the technique above you wanted to submit course completion at any point

Since Storyline does not have any event trigger that monitor the browser closing or opening, perhaps you can ask other developers from the E-Learning Heroes forum (https://community.articulate.com/forums/articulate-storyline) if they have any experience catching the closing of the browser window using Javascript, then use it to change a variable value. Then you can use the value of the variable upon resume as condition to a Submit Result Slide when timeline starts trigger on all your slides. So far this is the only thing I can think that could help you achieve your design.

Here's another technique that might help: https://community.articulate.com/discussions/articulate-storyline/storyline-set-lms-status-with-javascript

Please note that we don't provide troubleshooting of JavaScript codes.

Let me know if you need anything else!

Cleo Sinues
Sr. Storyline Support Engineer

Jason Moore

I followed Cleo's last link: https://community.articulate.com/discussions/articulate-storyline/storyline-set-lms-status-with-javascript

I've added the following JavaScript code to every slide except the "Results" slide:

var lmsAPI = parent;
SetStatus("failed");

So, if the learner exits the quiz without finishing, they fail.

But, once they reach the "Results" slide with 100%, the Status is reset to "Passed".