Multiple Actions on Next Button
May 12, 2017
I have a slide with several click and read objects. These all need to be viewed before the learner moves forward. Not a problem. I have the action on the Next button checking that a slide complete variable is set to True before advancing to the next slide.
However, I want to show a layer with a message "please read all before continuing..." when the complete variable is set to False.
Does anyone have a suggestion for how to do that? There is no "else" in the IF/Then and I can't seem to create two triggers for the Next button. I'm stuck.
Suggestions appreciated!
8 Replies
Trigger #1 Show layer "Read all" (I generally set this sort of layer with a reasonable timeline, then have it close when the timeline ends.) if completeVariable = False
Trigger #2 Jump to next slide if completeVariable = True
Since there is no ELSE, you have to execute all the triggers with each click, which means you can't write your logic with a default value. Each trigger has to have a complete set of conditions, which in this case is pretty limited.
Hi Walt. What am I attaching the triggers to? That's my problem. I can attach the Trigger #2 to the Next button, but to what do I attach Trigger #1 ?
Hi Elizabeth, both should be attached to the Next button. Trigger #1 would be: Show Layer "Read All" when user clicks the Next button IF complete variable=false.
It shouldn't matter whether you place this before or after your other trigger, as exactly one of these conditions will fail each time.
That was my original thought. But I must be doing something wrong. I had two triggers attached to the Next button. But only the Jump to Next Slide worked, no matter what order I had the triggers. I must be missing something!
Try moving "Walt's" trigger to the top of the queue. It really shouldn't make a difference logically, but I think I've ran into this issue(bug) a while back, too.
I reordered the triggers and it works. I thought I had tried that before I even posted the question, but I guess I hadn't. Thanks for your help!
I came up with a way to do this without relying on a time. It uses two variables. A completeVar and a clickCount variable.
clickCount variables starts at 1
completeVar starts at False
TRIGGERS:
Show Layer 1 when the user clicks next
Add 1 to clickCount when user clicks next
Show Layer 2 when the user clicks next if clickCount is 1
Set completeVar = True when the user clicks next ifclickCount = 2
Jump to Next slide when user clicks next if clickCount = 3 and completeVar = True
Thanks for popping in to share your solution Scott.
Welcome to E-Learning Heroes :)
This discussion is closed. You can start a new discussion or contact Articulate Support.