Limiting exam attempts
April 26, 2013 12:00 AM
Hi there,
Here's my issue:
The course im developing has 5 sections in one AU, each with an exam at the end that has 2 sub-sections within it (1=random bank of 10 questions, 2='submit' page).
The submit page links to a results chapter (1=pass, continue to next section, 2=fail, return to start of section). If the student fails they are returned to the start of the section to do it all again including retaking the section exam. This all works fine and adds up beautifully in the LMS.
I've now been tasked with limiting the number of times a student can do an exam to 3.
I have done the following:
Created variables (Exam1_Attempts, Exam2_Attempts etc etc)
Onshow -> ModVariable -> Set value to 1
Onshow -> ModVariable -> Add 1
Onshow -> GoTo "You have reached your limit" Page -> if Exam1_Attempts greater than 3
I've tried putting these variables at:
Start of the Section
Start of Exam Chapter
Start of Exam Section 1
On Fail Results page
On Fail Results 'Next' button (I changed from OnShow to OnClick for this)
But Im not able to get it to work. Can anyone tell me what im doing wrong please?
Im not publishing to LMS to test, just running in preview in Lectora and would really like to put the variables on the Fail 'Next' Button if possible.
Thanks
Discussion (2)
Did you put two actions right next to each other like this?
Onshow -> ModVariable -> Set value to 1Onshow -> ModVariable -> Add 1
This means that your variable is first set to 1, then you add 1, get 2.
When you do it again, you set it to 1 again, add 1, get 2.
So it'll never reach 3.
Nice one, thanks very much ssneg! left my logic hat at home today.
:D
Discussions have been disabled for this post