Variable to switch layer on to all slides

Apr 15, 2016

Hi all,

I've read some great tips on this forum, so I'm hoping someone might be able to help with this little quiz/variable conundrum:

  • Every slide of my quiz has a button that allows you to download a pdf of the entire document, but you can only download once you've completed the last question of the quiz.
  • When the user gets to the results slide, a true/false variable changes to 'true' which then turns on a layer enabling the download (on every slide), except I can only get it to work on the results slide.
  • When you go back through the document, none of the other layers have been switched on, even though they all have the same variables applied.

Does this make sense?! I'm hoping someone reads this and can shed a little light, or even suggest a better solution!

Many thanks,

Simon (frustrated novice)

4 Replies
David Schwartz

Simon,

It sounds as if the only purpose of the layer is to display the button. If so, my suggestion would be to put the button on the base layer, and set its initial state to Hidden. Then create a trigger for the button that sets the state to Normal when the timeline starts for that button on the condition that your variable is set to "True".

It may be in the current situation, your trigger is based on the variable changing, which it will only do when you hit the results screen. If you want to keep the layer idea, I think if you were to modify the trigger on the other screens so that it happens when the slide timeline starts on the condition that the variable is equal to "True," you would also get the results you want.

 

Walt Hamilton

I'm going to disagree with Matthew on this. When you revisit a slide, the timeline restarts even if  it is set to resume saved state, but when a variable changes, it can be noticed only by the slide that causes the change. Any other slide can read its value, however.

My wild guess is that it is the layer that causes the problem. If I were to design this, I would put the download button on the base of the slide, not a layer. Set it to have an initial state of Hidden, and to change when the timeline starts if variable is True.

See the attached example, and notice that the button appears on it whether it is set on the slide or the master, even though the slide is set to resume saved state when revisited.

As to the slide vs master question: If you create the button on the slide, you will need to create it on each slide. if you create it on the master, you may need to create a layout that doesn't have it for slides where you don't want it.

Of course, we are all guessing. If you could attach your .story file, we might come up with better suggestions.

 

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