Only allow user 2 attempts to pass assessment

Hello everyone,

We have some e-learning that contains an assessment at the end of the module. However, we only want to allow the user to have 2 attempts at passing the assessment. If the user does not pass the assessment twice and tries to complete the assessment a third time, the module only allows the user to view the last attempt and what answers were picked. So far so good. However, if the user closes the module and then runs the module again. The module allows the user 2 more attempts. 

Is there a way of stopping this from happening, or should this be made at LMS level? 

I hope it makes sense. 

Thanks in advance. 

17 Replies
Lauren Connelly

Hi Andre! 

Quiz assessments are one of our most popular and customizable features, so let's make sure your course is fully equipped! 

First things first. I would start by contacting your LMS support team regarding the refreshed attempts. 

It looks like you've already mastered customizing a graded assessment! Let's start with your "Results" slide in Storyline. If you haven't created one yet, here's a simple tutorial.

Next, add a "Retry Quiz" button. You'll be able to adjust the variables to give your users multiple attempts. This tutorial goes in great detail.

After that, you should be good to go!

Kevin Hayes

I implemented this on a recent assessment using a simple variable call "number_of_attempts". 

This variable starts at zero and increases by 1.0 each time that they do the assessment (in my assessment it is adjusted when the first Q page is displayed).

I have a very simple Slide Trigger on the first page of the assessment that checks the value of the "number_of_attempts" and if it is equal to or greater than the number allowed (in your case greater than 2 - in my assessment - 3) it displays a new layer on that page which is effectively a lock screen.

The learner cannot then attempt the assessment again.

It's simple and it works and doesn't require any LMS functions

(In my assessment I also have a code that can be entered by the user to unlock the assessment but that's probably more than you need)

Kevin Hayes

LMS rules are a constant challenge - more so as I work within an enormous organisation which has multiple audiences so the LMS is configured to meet the needs of the many which always creates issues if we need to do something "slightly different". 

The best (and quickest) solution has always been to create a cunning piece of code that makes the assessment within the Storyline package behave as we want to regardless of what the LMS might wish it to do. 

Thus the "lock screen" trick which is a simple way to prevent multiple assessment attempts beyond a set number regardless of what the LMS might want to provide to learners.

Andre Da Silva

Hello Kevin, once again, thank you for the tip. I have tried to apply the variable. However, it does not seem to work for me and I think there might be a trigger somewhere that is not correct. If I uploaded the assessment slides, could you kindly have a look at the triggers? It might be easier than trying to explain. 

Kevin Hayes

Hi Andre,

Here are a couple of things you should modify:

  1. The retry button is linked to the page 1.2 - but the code to display the "Number of Attempts Exceeded" layer is on 1.1.  So you should amend the link on the RETRY button to point to 1.1
  2. The code on the Assessments Results page has a trigger to "hide" the retry button if attempts=1.  This should actually be hide if attempts = 2

Pretty sure those two changes should solve your issues.

I made some modifications myself and included a speech bubble that counts the number of attempts so you can see code is working as expected - have a look at this:

https://cloud.scorm.com/sc/InvitationConfirmEmail?publicInvitationId=eaf40df2-ed68-42b9-9425-41e8ddc969a2

Andre Da Silva

Hi Kevin,

Thank you so much for this. I have amended what you suggested and the course works perfectly. However, I have tested with our LMS and it seems it is overriding it and still allows the delegate a further 2 attempts after closing the module and restarting. I think we need to take this out with the LMS provider.  

Kevin Hayes

That seems to suggest that the suspend data isn't being handled correctly by the LMS. 

Assuming you are using a SCORM 1.2 (or Scorm 2004) LMS the value of the number of attempts should be recorded within the suspend data and restored on resuming the learning. 

This is why SCORM cloud is so handy  - you can point to it working there and ask your LMS supplier what they are doing wrong :)

Kevin Hayes

Hi Derek - easy fix.  

Just change the object for the trigger to the slide and not the button:

Also (just my view):

- I tend to prefer to use "Greater than or Equal to" statements as this counters for all values above the limit (i.e. just in case they magically get to three)

- Hiding is usually cleaner than disabling (but it depends)

- I usually have the counter button on the page that starts the quiz (rather than the retry button) as it's cleaner (i.e. by putting "2" as the value of the retry you are giving them three attempts not two as the first attempt is zero)

Derek Sanford

Thank you, Kevin!
I appreciate the fix and the extra advice.

Thank you,
Derek

Confidentiality Warning: This email and any files transmitted with it may be confidential and are intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify the sender immediately and delete this original message and any copy of it from your computer system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this email is strictly prohibited. Disclaimer: This email may contain information that is intended to lend technical knowledge and support to the recipient. Laws, regulations, and best practices change, and the observations and comments drawn today may not apply to laws, regulations, or best practices as they may be in the future. Any recommendations made by J. J. Keller staff are offered in strictly an advisory capacity and are not to be construed as legal advice. Recipients seeking legal advice should consult with legal counsel. J. J. Keller & Associates, Inc. P. O. Box 368, Neenah, WI 54957-0368