Share Twitter Facebook LinkedIn Google+

5 Easy Steps to Calculate Learner’s Time Using Articulate Storyline

Written By Satish Kumar Viyyapu

5 Easy Steps to Calculate Learner's Time Using Articulate Storyline

Recently, one of our clients asked us whether it is possible to display the time taken by the learner to complete the course easily, using Articulate Storyline. YES, we can.

The requirement can be met using triggers or JavaScript. However, using triggers to meet the requirement is a complex and time consuming process. This is because we need to create a lot of triggers. We can satisfy the client requirement in just 5 easy steps using JavaScript.

Step 1: Create three variables to store the starting time (time when the learner begins the eLearning course) in terms of hours, minutes and seconds. I have named the variables as Hours, Minutes and Seconds respectively.

Step 1

Step 2: Add a trigger to execute JavaScript code when timeline starts for the first slide.

Step 3: Create three more variables to store the time at which the learner completed the last slide of the course. I have created them with names Hours1, Minutes1 and Seconds1. 

Step 4: Now add two triggers to execute JavaScript when the timeline ends for the last slide in the eLearning course.

Trigger1 to calculate the ending time (when the learner finishes the course)

Step 4 - Trigger1

Trigger2 to find the difference between the starting time and the ending time.

Step 4-Trigger 2

Step 5: The last step is to display the time in the last slide. For this, add a reference (variable name between two % symbols) of variables.

Step 5

It’s done! You can display the time taken by the learner to complete the course. You can even calculate the time only in minutes or seconds just by modifying the code.

Hope you find this blog useful. Do share your views.

View Webinar on Articulate Storyline - A Boon for Learning Designers and Stakeholders


Subscribe to Our Blogs

Get CommLab's latest eLearning articles straight to your inbox. Enter your email address below:

eLearning Learning