Disabled state not working

Jun 08, 2021

Attached are some slides where I want the 'Next' button to be disabled until all three use cases have been visited. I have created variables that change to true after the knowledge check button is clicked in each use case.  This works as I have put a visual on one slide showing when the variables change.  I then put a trigger on the page with the disabled next button that should change its state to normal when all three variables are true.... no luck.

I am incredibly frustrated because I cannot seem to figure out how the disabled state works - I have tried at least 7 different combinations to get this to work and it simply will not.  What makes this more frustrating is a nice person already helped me with a similar request - I copied what was done there and it did not work here.  

Can someone please explain to me what I am doing wrong and where I can get some clear explanation of how to use the disabled and hidden states?  

Thanks!!! :-)

5 Replies
Walt Hamilton

A,

I wonder if you have attached the wrong slide? On this one, I see 6 cases, not three, there are no variables, there is no Next button (not one that matches the Back button, nor a different one), there is nothing that is disabled (either by initial state, nor by trigger), there is no trigger to show the Next button, and there is no trigger to advance to the next slide. What is here is a quiz file, and I rather imagine you would want to advance after the interaction is completed and feedback given.

Did you strip out too much, or is this the wrong file?

Walt Hamilton

Here's why it isn't working:

 

The only time the timeline on Next starts is when the slide starts. Lightboxes don't do anything that allows for the timeline of the slide that calls them to restart. So this trigger will be evaluated only when the slide starts.

Normally, there are few actions associated with a lightbox closing that allow for the firing of triggers, but it seems that changing a variable will do it. This is the only situation I know of where a slide can be aware of a variable change that is done on another slide. Usually only the slide that changes a variable can be aware of the change. It appears that in the case of a lightbox changing a variable, both slides are open, and can hear the variable change. So I learned something today.

Anyway, I would keep the "When timeline starts" trigger, so next is visible if the slide is revisited, and the three cases have been read.

I attached a trigger like this to each of the three variables, and it works now.