Locking a quiz for a certain time (with javascript) ?
Apr 12, 2019
Hi Heroes,
I'm creating a course in which I need the a quiz to "Lock" for a certain time period (7 Days) upon failure.
I'm thinking this is possible using javascript. Any Javascript wizards know how this can be done?
Conceptually I believe I only need three variables:
Current Date
Attempt Date - (Date of Attempt)
Retry Date - (Attempt Date + 7)
Course Locked- T/F
Upon failure, the Course Locked variable will change from False to True, and send users to a "Quiz is Locked" Slide. When the Current Date is = to the Retry Date, the Course Locked variable will become False again and allow users to retry.
This makes sense in my head - but how do I get SL to "remember" the attempt date if they are returning to the course at a later time?
Any Insight would be helpful.
-Mike
1 Reply
Set it to force resume should do what you want.
You shouldn't need a retry date variable as you would compare attempt date with todays date (and check 7 days have past)
Should only need two variables LastAttemptDate (text) and courseLock (T/F)
This discussion is closed. You can start a new discussion or contact Articulate Support.