Naming variables uniquely across slides

Mar 30, 2017

Do Variables need to have unique names across all slides?   I'm working on a multi-slide project with fill-in-the-blank variables.  But I copied the blanks so I could create the slides easier that way.  Since I didn't know what I was doing, I changed the Variable name to match the ordered sequence on the slide (blank 1 in the first position, blank 2 in the second position, etc.). 

But now when I preview the slides, any slides with repeated variable names has the blanks already filled in because the user fills it in with text on the first slide. 

This will make more sense if you fill in the blanks for slide number 1.3. Then go to slide 1.5 and the blanks will be filled in.  Also slide 1.6. The answer key for slide 1.3 is also attached.  

I'm not sure what I need to do differently.  I tried "reset to initial state" when visiting the slide, but that didn't work.

Thanks for your help in advance!

Michael W

2 Replies
Susi B

Hi Michael,

yes you have to set individual variables if you don´t want them to act as they do in your file. But there is a little trick you could do. You can set a trigger to "change variable x = value __ when timeline starts slide x". So it shows the same "__" at the try again slide when it starts. But this will set the overall variable back, so the first attempt of the entry can not be seen anywhere. If that doesn´t matter, this could be a solution instead of having another 100 variables. :)

Susi

Walt Hamilton

Michael,

Think of variables as contacts in your phone, and slides as days in your life. You put in my number today, and when you get to next Wed, you can look it up (because you won't still remember it), and it will still be the same. In the same way, a variable will carry its value on to the next slide. If I get a new number, you have to go in and change the number in your contacts.

So the point is, if you want to keep the content (user entered value) for another page (like a summary page), then every page needs its own variables. (When you enter my new number, you lose my old one.) On the other hand, if you don't need those old values, and don't want to create more variables on each page, then you need some way to set each of them blank.

If you want to set them all to blank on every new slide, I would use a layer. That way, you only have to write the triggers once. Create a layer with nothing on it but triggers. Use Susi's suggestion "Adjust variable XX to blank when timeline of layer starts". Set the timeline of the layer to .1 sec, and set it to close when its timeline ends. The user will never notice it. As long as you are using the same variables, you can copy and paste it to any slide where you want the variables reset to blank.

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