Disable Next button untill all hotspots chosen randomly

Jun 12, 2019

Hi Team,

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?

Thanks in advance :)

Liz

11 Replies
Wendy Farmer

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.

Elizabeth Piris

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

Wendy Farmer

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.

Wendy Farmer

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.

Wendy Farmer

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.

 

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