Changing the state of a hidden button to normal with variables and conditions
May 12, 2017
Hello,
I have just finished populating my storyline file will placeholder content, and I'm after some advice about how best to go about developing a few trigger. I have tried multiple ways to make this work, but I can't seem to get it right.
I have a main menu slide which has 6 buttons on it. Button 5 five takes the user to a slide called 'Part Wheel.' In this 'part wheel' slide I have a base layer with a 'back to main menu' button which is hidden, and 6 slide layers. Each slide layer has a 'learn more' button. When the user clicks on this 'learn more' button they are taken to a separate slide with a tab interaction that has more content.
I want to make the following happen using triggers:
- to begin with hide all the 'back to menu' buttons on each home page of the 6 tab interactions
- each 6 tab interactions have a variable of false to begin with, and when each tab interaction's content has been viewed change the value to true and show the 'back to menu' button
- when all the tab interactions have been viewed (equal to true) show the 'back to main menu' button (change it's state from hidden to normal) on the part wheel slide
- when the 'back to main menu' button is true change the state of the 'Button 5' button on the main menu page from normal to complete (custom state)
I hope this all makes sense, I have attached my .story file for your reference. Any help would be much appreciated, i'd love to hear your thoughts!
Thanks in advance! :)
15 Replies
Hey APM!
Trying to keep up with your description here, let's see how close I get:
What am I missing?
Your updated file is attached.
Hey Leslie, thank you so much for your reply, I really appreciate your help.
The changes you have made are great. However, I'm wanting to take it a few steps further:
- the changes that you have made on slide 1.3 (Part/Section 1) need to be duplicated to all parts/sections - Part 2 (Slide 1.4), Part 3 (Slide 1.5), Part 4 (Slide 1.6), Part 5 (Slide 1.7), and Part 6 (Slide 1.8)
- then once all the parts/sections on slide Part Wheel (slide 1.3) have been visited the 'Back to main menu' button needs to appear (change its state from hidden to normal)
- finally. once the 'back to main menu' button has been click and the user is taken back to Menu (slide 1.1). change the state of button 5 from normal to complete (custom state)
Please let me know if this doesn't make sense. thanks in advance!
Is it possible that Leslie made the changes on 1.3, and left parts 2 - 6 for you to duplicate (and learn by doing)?
If Back to menu button appears, the same principal can be used to make button 5 appear.
Give it a go, and let us know how it works out.
Hi Walt,
Thanks for your input, all the feedback helps!
I understand that Leslie may have left that for me, that's great, I have duplicated those steps in the bellow attached file.
However, that is not the issue that I am having trouble with. What trigger should I use to call the 'back to main menu' button to appear? Did I made the right decision using variables?
As you know I would to like to develop some triggers to complete the following:
- then once all the parts/sections on slide Part Wheel (slide 1.3) have been visited the 'Back to main menu' button needs to appear (change its state from hidden to normal)
- finally. once the 'back to main menu' button has been click and the user is taken back to Menu (slide 1.1). change the state of button 5 from normal to complete (custom state)
This is a screenshot of the trigger I am currently using. I have two reference variables on the Part Wheel slide (slide 1.3). The variables have changed to true, but the action doesn't happen. I think this is were my file is breaking.
Hi
I've made some changes to your triggers and I think it's working how you want.
see attached file.
For further reference:
This trigger may indicate a problem. If Part3Seen changes before Part6Seen, btn_back will not be changed. There needs to be another trigger (a duplicate of this one) that fires when Part6Seen variable changes.
All this assistance APM :) Love it!
Walt nailed it, I only did one so that you could do the rest.
Thank you so much everyone for all your help! Wendy you have made the solution and I was able to replicate it.
Thank you!! :) :)
Glad you got it sorted and good luck with your project!
Hi again,
I have added a custom state called 'Seen' (with a green tick) to the Part 3 arc on slide 1.3.
I am trying to add a trigger that changes the state of the arc from 'normal' to 'seen' on the condition that the variable 'Part 3 Seen' is equal to true. (which means that all the content on slide 1.5 has been seen and they have clicked the 'Back to Menu' button)
I have tried to apply the same logic as the above trigger but it hasn't worked.
Any advice would be much appreciated. Many thanks :)
Hi APM
Should you be hiding the close button on 1.3 so the user clicks Learn More to see all the content on 1.5 - I've just been clicking close I didn't even look at the Learn More - which may be what some people do.
Hi Wendy,
thank you very much for your quick response! What you have suggested sounds great and it is definitely something I want to look at doing.
However, at the moment my main focus is developing a trigger that changes the state of the arc from 'normal' to 'seen' on the condition that the variable 'Part 3 Seen' is equal to true. (which means that all the content on slide 1.5 has been seen and they have clicked the 'Back to Menu' button).
Considering that your solution to my initial query involved setting a trigger on the 'Back to Main Menu' button by clicking the object 'btn_close', I'm not sure if what you have suggested is the best option.
Is there another way that you know of?
Hi
I'm noticing duplicate triggers so I think I am getting a little lost.
On 1.3 you are adjusting variable Part3seen to True when user clicks close button
On 1.5 you are adjusting Part3seen to True when timeline starts on 1.5 and when user clicks back button.
Update: see if the attached works for you.
Hi Wendy,
Thank you very much for all your help. I can see what you mean about the triggers being confusing, I am getting lost too!
I think you are correct in saying that the duplicate triggers are causing the problems.
The attached file works great, thank you!
Glad you're on track and good luck with your project.
This discussion is closed. You can start a new discussion or contact Articulate Support.