I have created a slide where users need to identify 11 workplace hazards in the picture. As these can be selected randomly, how do I change the state of the 'next' button to only appear after all 11 have been selected, regardless of which hotspot they click on last?
Since hotspots can't have states can I suggest using transparent shapes instead.
Create a transparent shape (solid fill 100% transparent) which can have a normal and disabled state.
Create a number variable (count) and set triggers to add the value of 1 each time they click the transparent shape and another trigger to change the state of the shape to disabled so they don't try double clicking on it or accidently re-clicking it.
Change state of next button to disabled when timeline starts on the slide
Change state of next button to normal when variable changes (count) on condition that count = 11.
Thank you so much for this, its all worked a treat except for the last step. My next button doesn't seem to be returning to normal even after the count being set at 11.
I must have missed something or not set it correctly, here is a screen shot of the trigger.
hard to say without seeing your file but it could be trigger order. I've just created a mockup with 3 shapes and it's working as expected. Here is my trigger panel - check to see how yours matches
Sure Liz - happy to take a look. If you post the file here on the forum it will be public. If you need to do it privately (and I'm not Articulate staff - just a user like you) and you're happy to share it - click my profile pic and send me an email and we can work from there. Alternatively, post it here and I'll download it and you can delete it from the post.
Click the Reply button (make sure you are on the webpage and not from your email as the attachments won't display for me to pickup). Click the Add attachment button at the bottom of the post and select the file (I need the source file - so the one with the .story file extension) and then click Post Reply. Here is a quick Peek video example.
Ok - first issue I see is the default value of the 'count' variable. This should be 0 because with each click of an object there is a trigger to add 1 - so if it starts at 11 and adds 1 your trigger to change state of next to normal when between 10 and 11 is never going to fire.
Change this to zero.
Re-order your triggers. SL executes trigger in order...so you are showing the layer first.
You want the Add trigger first, then change state, then show layer.
11 Replies
Hi Liz
Since hotspots can't have states can I suggest using transparent shapes instead.
Create a transparent shape (solid fill 100% transparent) which can have a normal and disabled state.
Create a number variable (count) and set triggers to add the value of 1 each time they click the transparent shape and another trigger to change the state of the shape to disabled so they don't try double clicking on it or accidently re-clicking it.
Change state of next button to disabled when timeline starts on the slide
Change state of next button to normal when variable changes (count) on condition that count = 11.
Hope that helps.
Hi Wendy,
Thank you so much for this, its all worked a treat except for the last step. My next button doesn't seem to be returning to normal even after the count being set at 11.
I must have missed something or not set it correctly, here is a screen shot of the trigger.
Thanks
Liz
Hi Liz
hard to say without seeing your file but it could be trigger order. I've just created a mockup with 3 shapes and it's working as expected. Here is my trigger panel - check to see how yours matches
Hi Wendy,
Thanks so much for all your help, I've copied it all but the next button is still disabled even with it showing exactly like yours.
I do have an extra trigger so that when the user clicks on the hazard, a box appears with what it is. Not sure if this is causing issues.
Could I share the file with you? First time doing this on a project so I feel a little lost now :(
Thanks
Liz
Sure Liz - happy to take a look. If you post the file here on the forum it will be public. If you need to do it privately (and I'm not Articulate staff - just a user like you) and you're happy to share it - click my profile pic and send me an email and we can work from there. Alternatively, post it here and I'll download it and you can delete it from the post.
THANK YOU!
I will remove my company info and just send the course with the a few slides as I have another copy already.
Silly question - ive never posted a course on here for review, how can I do that?
Click the Reply button (make sure you are on the webpage and not from your email as the attachments won't display for me to pickup). Click the Add attachment button at the bottom of the post and select the file (I need the source file - so the one with the .story file extension) and then click Post Reply. Here is a quick Peek video example.
Awesome thanks so much :)
Ok - first issue I see is the default value of the 'count' variable. This should be 0 because with each click of an object there is a trigger to add 1 - so if it starts at 11 and adds 1 your trigger to change state of next to normal when between 10 and 11 is never going to fire.
Change this to zero.
Re-order your triggers. SL executes trigger in order...so you are showing the layer first.
You want the Add trigger first, then change state, then show layer.
Let me know how you go.
OMG it worked!!! YAAAYYYYY
Wendy you are amazinggggggg, thank you so so much.
I cant believe how tricky this got for me but thanks a million for helping me out.
You are a STAR :)
So glad you got it working Liz...all the best with your project :-)
This discussion is closed. You can start a new discussion or contact Articulate Support.