Input Data Entry and Trigger Layer with Correct Value

Aug 18, 2020

I want a layer to display after the learner enters a value of 100 in an input box. I have a slide trigger with an if condition, but the if condition doesn't seem to work. When I remove the if condition the layer displays. Can someone explain why this is occurring and how to correct? I've attached a screenshot of my triggers.

4 Replies
Ned Whiteley

Hi Monica,

When you create a new slide, the timeline defaults to 5 seconds and so, if you haven't amended the timeline, you only have 5 seconds within which to enter your value in the text box. After that time the trigger will not be activated.

You could just stretch out your timeline or, alternatively, you could change your trigger to operate when the text variable changes, provided the new value is 100:

Monica Jackson

Thank you Ned!

Please elaborate on "stretch out your timeline" because I have an audio which plays on this slide, so the timeline is advancing. And, how did you ever discover this five seconds rule???? I would have never figured that one out. Also provide an example of changing the trigger. Making sure I understand your explanations to determine the best route to take. Thanks again!

Ned Whiteley

Hi Monica,

When you first create a slide everything is set to five seconds on the timeline (you will see this when you create a blank slide). However, if you add audio or video, which has its own built-in timeline (i.e. the length of the clip), the slide timeline will be automatically extended to accommodate it.

When I talk about stretching out your timeline, at anytime when editing your slide, you can grab the timeline by dragging it with your mouse and move it left or right:

With regards to changing the trigger, your original trigger was:

Show layer Correct - Next Activity
    When the timeline ends on this layer
        if UserLoad = value 100

This should be changed to:

Show layer Correct - Next Activity
When UserLoad changes
if UserLoad = value 100

I assume from what you have said above that you probably listen to the audio and then enter the value. Because the end of the audio will now be the end of the timeline, if you enter the value after the audio has completed, it is already too late for your trigger to activate "when timeline ends". Your two options are:

1.  Drag the timeline out a further (say) 60 seconds, to give the user plenty of time to enter a value.

2.  Change your trigger to the version I have suggested above (the better option).

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