Number variables for checking button clicks/ visiting layers
Hi, I am trying out a number variable (default value 0) and adding 1 to the variable when the user clicks the button to ensure all the buttons (4) are clicked before moving on. Also the next button is disabled and is enabled when the count of the variable is >= 4 (in case the user clicks the button more than once or revisits). However, it is not working. I have even tried to check the count of variable using variable reference and it surely reaches 4 but the next button is not enabled still. I also added a binary variable to the number variable which doesn't work either. Is this a right approach or shall I try using a binary variable for each button and mark it true when the layer is visited?
Because the user is visiting layers (and not different slides) when they click the buttons, you could simply enable the NEXT button when the STATE of all the buttons = Visited.
Keep in mind that the NEXT button would be enabled as soon as the last button is clicked. Thus, if the layer has audio or video, the user could skip it. One way to prevent that is to use Dialog layers, because those cover the Player. Otherwise, you could use an alternate method to enable the NEXT button when the layer timelines are all completed.
You'll also want to add a condition to the trigger that disables NEXT when the timeline starts, because you don't want that to run if the user revisits the slide after completing the interaction.
Here's more info: https://community.articulate.com/discussions/articulate-storyline/tip-controlling-the-next-button-101