Using variables and/or conditions on buttons to trigger a new slide

Jul 22, 2016

I am trying to create a slide where I have 6 buttons that link to slides that come up as light boxes when clicked.  The buttons can be chosen in any order.  After the sixth button is clicked and that light box slide is closed, I want a new slide to appear.  I was able to get the new slide to come up at the time that all six buttons were clicked based on a condition that was added to a trigger but that is too soon on the sixth button because then they don't see the lightbox which is set up as a slide with a lightbox trigger.  I want the trigger to be when the sixth lightbox is closed that the new slide appears.  Does it matter if I have the lightboxes as layers or new slides using the lightbox trigger?  And/or should I set up a variable to somehow count when the lightboxes  are closed?

4 Replies
Christie Pollick

Hi, Michelle -- Many thanks for reaching out here with your question! May I ask if you have a file started that you might be able to share so that your fellow community members are able to take a look and offer more file-focused insights for what you have in mind? You can attach it here by using the grey ADD ATTACHMENT button in the bottom left of the reply box and you will be able to browse and upload from there. 

Also, in case you weren't aware, I thought I might also mention that our design-related Building Better Courses forum here is a great avenue to discuss project specifics. 

Walt Hamilton

Michelle,

This trigger says: "Change Variable1 to whatever variable1 already is", so it isn't doing you much good. Generally you want to change a variable to a new value, or to match another variable.

  

The idea you want here is that when each slide is viewed, a variable is set to show the user has seen that slide. Therefore, you are going to need a unique variable for each slide.

Normally, I set that variable to true when the user closes the slide or layer. That way, they don't get credit until they finish. However, lightboxes are different. If you like the effect of the lightboxes, keep it, but you lose some of the functionality you get with slides and layers. Specifically, in this case you lose the ability to create triggers that execute when the user closes the slide, because you cannot access the button that closes the lightbox.

That said, in the attached sample, since we have lost the ability to change variables when the user clicks the close icon, and don't want to guess how long it takes the user to read the slide, I have set each lightboxed slide to change its variable when its timeline starts.

On the main slide, there is a button to advance. Its initial state is set to hidden. Each button (1-6) has a trigger that changes the state to normal, if all the other 5 variables are true.  It has to become visible when you click the button, because there is no way for the slide to know when the lightbox is closed. It is not visible to the user, because the lightbox covers it.

I have written the triggers and variables for buttons 1 - 3, to serve as guides, but you will need to finish the other three. Just note that the triggers on the buttons must be in that order.

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