Tabs template and base layer
Jan 05, 2017
By
Perinda Lowe
Good afternoon,
I'm working with the tabs template and when the user clicks the previous button from the next slide, it's returning to the last tab visited and not to the base layer. Also, I wanted the tabs to remain in the visited state when the user revisits the page, which I've already done. Just can't get slide to return to base layer and keep the visited state when the user revisits. Please help!
5 Replies
Hi Perinda,
If the slide is set to Resume Saved State when revisiting, then yes, the last tab viewed will always be showing.
To get around this and show the base layer, you'll need to go into each layer and add a trigger to hide that layer when the user clicks the next button.
Try doing that first and see if it works. If not, let me know and there is another solution that I know will work for sure using variables. It's a little cumbersome, but works every time. Hope that helps.
Hi Luke! Thanks for the response, it works, but when I click previous from the next slide it still comes back to the last checked tab. Wish there was a Hide layer if the slide is revisited. Or Hide layer when the timeline re-starts. Or an option to show the Base Layer. I don't understand why that's not an option.
The Previous Button functions like a back button on a browser. Unless slides are set to Reset to Initial State when revisiting, you'll go back to the same screen you were looking at when you clicked next.
If that didn't work, here is a workaround that should work. It's a little tedious, and someone else from the community may have an easier, more elegant way to accomplish the same thing.
First, create True/False variables with a default setting of False for each tab (ie - Professionalism).
Next, create Adjust Variable triggers on each layer to change a Tab's variable to True when the timeline starts (ie - Adjust variable - Professionalism - =Assignment - Value - True - When Timeline Starts - Object - That Layer).
Now, on the base layer, create triggers to change the state of each tab to Visited when the timeline of the base layer starts, all with the condition of that Tab's variable being True.
Change the properties of the base layer to Reset to Initial State.
Maybe give that a try and see if it works for you. If it doesn't then you may need to replace the visited state with a custom state since built-in states are program to function in very specific ways, and we want this state to only do one thing.
Hope that helps.
An update...Luke you were right the first time! I just needed to put things in the right order. So, the Hide Layers had to be on top of the Jump to next slide trigger and now it's working properly! Thanks again for your help. :) Posting a pic, because this was stumping me up. Hopefully will help someone else. Thanks!
Perfect! Sorry I forgot to include the trigger order reminder in my original post. Glad that worked for you and that you didn't need to take the long way.
This discussion is closed. You can start a new discussion or contact Articulate Support.