State of Next Button based on count Variable

Mar 01, 2022

Hi Everyone,

I am hoping to resolve an issue that I just can't figure out. I have three slides that contain three different photos. The learner is to click and identify three hazards (hotspots) on the slide in order to move to the next slide.  Doesn't matter which hotspots, any three is fine. 

Goal: The next button is disabled when timeline starts and is to change to normal when any three hotspots are selected. 

Now for the first photo I have 9 hotpots. I created a count variable and for each hotspot I added an 'adjust variable' trigger where a value of 1 is added to the count variable when the user clicks the hotspot. When the count variable reaches 3 or greater then the next button state is changed to normal. 

This works great for the first photo/slide.

For the second and third it is not working even though the variable, triggers and conditions are the same.  When I preview the slide on its own it works but when I preview the entire project OR in publish mode the 2nd and 3rd photo change the state of the next button to normal when only one hotspot is clicked. I want to keep it consistent where the learner has to choose any 3 of the hotspots (doesn't matter which one). Unfortunately I can't share my training but hoping someone has some advise on how I can get this resolved?

Thank you in advance :)

5 Replies
Walt Hamilton

Center is right; variables hold their value from slide to slide.  You could reset the count variable to 0 at the beginning of each slide, or use new variables. 

The next problem you will run into is that the learner can advance by clicking one hotspot three times, or one once and another one twice.  This solution involves a bunch more work, but if you want it to be foolproof, it's worth it.

The principle is that rather than incrementing a variable (which is vulnerable to over-counting), you need to count only those objects that have been chosen.

See the attached sample. Using the calculation layer saves having to create a gazillion triggers. I duplicated the slide, and the duplicated slide worked without modification.

You can use the slide. All you have to do is to change the picture, and the size and location of the shapes. I used shapes instead of hotspots, because hotspots can't have states. nothing else needs to be changed.

Any questions, ask.

Ishi K

Wow thank you both for the prompt replies! I definitely missed the mark on creating separate variables for each image/slide so thank you for that suggestion, it definitely solved the issue.

As for the clicking in one spot 3 times, it is currently being tested so I will wait for any additional feedback to come back and will certainly make those adjustments you provided above to ensure the learner is engaging with the slide as intended. Thank you for the advice! It makes more sense to count objects chosen. 

 

Thanks again!