Using variables to control state changes

Mar 28, 2018

Hello!

I'm currently using variables to control the state of my chapter tabs. So when a learner is on a slide, the first trigger on my slide says to "Set var_HighlightTab to equal 1 when timeline starts on current slide". I then have a trigger in my master slide (where my chapter tabs and module template are) that says "Change state of Tab1 to CurrentTab (custom state) when Timeline reaches Time .10s on condition that var_HighlightTab = 1". I have a similar variable setup on each slide, where the variable equals 2 for tab2, equals 3 for tab3, etc. 

This is working great the first time I visit the slide and when I go back and forth through the slides using the slide navigation.

But, when I jump from chapter to chapter using the tabs, the new tab highlights and the old tab stays highlighted. 

Has this happened to anyone else? Any suggestions?

Thanks in advance!

Gayna

2 Replies
Brian Allen

Hello Gayna,

Do you also have triggers on your master slide to change tab states to NOT current tab, if the value of the variable does not match the tab number?

For example, you may need to add triggers for each tab on the master slide that state something along the lines of "Change state of Tab1 to NOTCurrentTab (custom state) when timeline reaches time .10s on condition that var_HighlightTab not equal to 1".

Gayna Birns

Hello Brian,

Thanks for the reply. I tried adding a trigger that changed the state to Normal when timeline reaches time .10s on condition that var_HighlightTab not equal to 1, which resulted in the opposite. The tab wouldn't highlight at all when revisited. But I didn't try the same thing with a custom state. I'll give it a try and let you know if that's the solution.

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