Follow the steps below to calculate the time spent by the learner on the final quiz of an e-learning course developed using Articulate Storyline.
Step 1: Develop your quiz slides with the desired formatting.
Step 2: Create three variables to store the values of hours, minutes and seconds. Name them as you wish. I have named here them as ‘Hours’, ‘Minutes’ and ‘Seconds’ respectively.
Note: In order to get the timer work precisely, comment out a line of code in the above code and paste the same trigger in the rest of your quiz slides. You can even delete that line of code. Refer the screenshot below for better understanding.
Step 4: The last step is to add references (variable names between % symbols) for variables ‘Hours’, ‘Minutes’ and ‘Seconds’ in the slide master to display the time spent by the learner on the final quiz.
Now publish the course and check the output.
In this way, we can calculate the time spent by a learner on the final quiz.
Note 1: If you want to modify the above code, make sure that the names of the Storyline variables are identical to the variable names used in the code.
Note 2: You can use the code not only for the final quiz, but also for the entire e-learning course.
Hope you find this post useful. Do share your views.
Subscribe to Our Blogs
Get CommLab's latest eLearning articles straight to your inbox. Enter your email address below: