Button question

I have a button that when pressed will pop a table up showing all the correct or incorrect slides on an activity. How can add some code so that when you go to a different slide away from the button it will reset the button and hide the table?

Here is an example. Button on the last slide:

Didn’t look in the code, but timeSincePress resets when you move away from a slide.

image

This is what I have inside the button. It stays hidden and the table stays up when I go back to other slides.

image

This is what I came up with. When you go to a new slide it will jump to 100 and when it does that causes it to reset.

timeSincePress will jump to the max when you change screens. This was implemented primarily to keep students from returning to screens with animations still in progress.

There is, however an option on buttons to reset time when a student navigates away:
image

1 Like

:sweat_smile: I didnt even think to click that and see what was there… Thanks Jay!