Trigger Condition for 24 Hour Hold

May 10, 2019



I am setting up a test in Storyline360 that is graded. If they fail, they can have one more attempt to take it again but we would like to set it up where they have to wait 24 hours to take it the second time. We've played with the trigger conditions of Attempts equaling 1 to restart the test but we're not sure where to indicate that there is a timeframe that needs to be considered in the trigger as well. 


Any help would be greatly appreciated! Thank you!

2 Replies
Jem Janik

Hi Alicia,

The following thread talks about Time & Date Variables in Storyline, and how to set variables using javascript.  Perhaps you can grab the current data and time and add a day storing that as a variable.  I believe this will get your 24 hours later:

var date = new Date();

// add a day
date.setDate(date.getDate() + 1);

Then have a second variable for the current date time again using date.getDate();  I don't know the javascript myself, but I'm guessing there is a function to compare if the current date or time is greater than or equal to the 24 hours later variable you set or a numeric difference between two timestamps.

Not a full solution, but hopefully it sparks some ideas!


This discussion is closed. You can start a new discussion or contact Articulate Support.