confused with variables
Nov 20, 2016
By
Peter Burn
Hi, I have been messing with using variable to change button states since 0530 today and am stuck.
In the attached story there are four buttons on Menu. I want the button state to change to "visited" after the user leaves the last slide in the branch. No matter what I do, the state changes as soon as I click on the button. I need this logic to work in areal project so will certainly appreciate guidance about what step I am missing or what I am doing wrong.
thank you!
9 Replies
The Visited state is a built-in state that is triggered as soon as you click an object. I would suggest that you use a custom state, e.g. 'Completed' and change the triggers on slide 1.2. to change to that state if the variables are true. Also, make sure that you set the slide properties of 1.2 to Reset to Initial State.
Thank you Michael, now I understand why the tick marks kept appearing. Your solution prompts another newbie question: how do I set an individual slide's properties to Reset to initial state? I have been clicking all over and do not see where that option resides.
Peter
See here for info.
please can you look at this and tell me why it does not display the "completed" state after the variable is set to true?
Hi Peter,
I took a peek into your file, and I found a few triggers that needed a slight change.
On the last slide of each module, you want to change the trigger to 'Set item1Visited equal to true when the timeline starts' because the user may not stay on the slide long enough for the timeline to end.
Also, the triggers for each menu button should say 'Change state of itemButton1 to Completed when the timeline starts on condition that item1Visited is equal to true'.
I've made those changes to your file and re-attached it here. Take a look at it, and let me know if it works for you!
Thanks,I got the logic working in the real project and life is good again.
Great to hear! Thanks for popping back in with an update!
On the last slide of each module, you want to change the trigger to 'Set item1Visited equal to true when the timeline starts' because the user may not stay on the slide long enough for the timeline to end.
It is possible you may not want to change the variable until the end, if you want to force the user to complete the content before they get credit for having seen it.
Yes, they are required to view/read all the content. I suspect the easiest way to force this is hide the navigation controls on the slides and trigger "show" on media complete or use my own previous/next buttons, same as I would with Captivate.
Peter
Sent from Outlook
This discussion is closed. You can start a new discussion or contact Articulate Support.