Forum Discussion
Changing state of buttons after section is completed.
I have a menu slide with six different topics (buttons). What I would like to happen is when the user clicks on a button, it would link them to a topic and when they complete that topic it would then link them back to the menu page, change the state of that button to visited.
I have created a true/false variable and set it to false and then have placed a trigger on the last page of the section to change it to true.
I then created a trigger on the menu page to change the button from Normal to Visited when the variable is changed to True.
However, when I preview it, the button changes to Visited state when I click on it, prior to going to the section and is back to Normal state when returned to the Menu.
Any thoughts?
Thanks
- JonathanWorkmanCommunity Member
Phil & Gerry: I knew there was an explanation behind it and now this makes perfect sense. Plan on incorporating this design element into future projects...good stuff!
- JoeDeeganCommunity Member
I must be missing something because I'm having trouble getting this to work following Gerry's instructions. I have a menu slide where I want the button object to change to completed after a quiz slide is completed. Here's the steps I followed, notice any issues?
- Created a new "Completed" state and removed "Visited"
- Created variable "True/False" variable set to False.
- Created an "Object Trigger" so that the variable is changed to True when the user clicks the "Submit" button.
- Created a slide trigger on the menu slide so that the button changes to the new "Completed" state when the variable changes to true.
I also tested with a Reference as Gerry suggested and as suggested in this tutorial and the reference showed that the variable is working correctly but the state is still not changing when I preview. I also made sure the triggers were set to happen before the slide changes thinking that might be the problem but still a no go. Your help is greatly appreciated.
PS - I attached the story file for troubleshooting. Let me know if you need any other info.
- PhilMayorSuper Hero
Forgot about that one, the variable must change on that slide for that trigger to work, not on another slide.
Glad you got it sorted
- louisegreenhoffCommunity Member
Thanks Phil. I really struggled with this last time nut managed to recreate what your screenr showed on my own and it works perfectly!!! Many thanks
- InstructionalDeCommunity Member
Can you use this same approach to display a layer (with a checkmark) rather than to change a button state? Or does it have to be a change in state?
- SteveFlowersCommunity Member
Howdy, ID -
You can use the same concept to show a layer. But it might be more manageable to set your checkmark's initial state to hidden and use the trigger to show the Normal state when it meets the right conditions. That way you can manage all of your checkmarks on the base layer. Make things easier to align and distribute.
- Al-RoseCommunity Member
Thank you all so much to Phil Mayor's post on how the change color of the items in a drop down menu after the user has selected it and it has jumped to the slide assoicated with that choice of the drop down menu. I had a 12 item drop down menu to design and it works perfectly.
Thanks to Mike Taylor for turning me on to this post by Phil. Both have contributed to my design. The Storyline community is just wonderful.
Thanks again to all.
Very nice of you to share Al! I agree, great community
- ZubeidaKudoosCommunity Member
Awesome! I was making exactly the same mistake.
- TonyaWeathersCommunity Member
Wonderful! I was working on this problem for hours until I came across this post. Thanks Joe and Phil!