Disabling a button after slides are viewed

Dec 12, 2023

Hello. 

I have built a page with 2 buttons that allow the user to choose which path of slides to view. When the user gets the end of the path, I don't want them to be able to select the other button to view the alternate path. The user get's one decision, so I want to disable the buttons based on the path that a user takes. I built a "true" "false" variable and a trigger to disable the buttons when it turns to true, but it's not working. I'm stumped. Your help is greatly appreciated.

2 Replies
Tom Kuhlmann

Looks like the two paths are devices 1 & 2.

There are few things you can do with and without variables.

Without:

  • The only way they can select a path is via access to that slide. You could make the selection slide a hidden slide not available via the menu. Thus they'd only see it initially and after they make a choice would never get back to it.

With:

  • Choice buttons: put a disabled state on the button (or you can hide the buttons)
  • When they make a selection, you can change the state of the non-selected button. I'd add that trigger first and then the jump to slide trigger.
  • This doesn't require a variable. This should remain intact if they revisit the slide by ensuring it "resumes saved state" in the slide properties.

With variable

  • You have a variable that is triggered at the end.
  • On slide 1.2: the trigger should be to set the button to hidden when the slide starts on the condition that the visited variable is = true

 

The variable is changing on slide 1.6. So when they go to slide 1.2 it will never change because it's already changed. That's why you want the trigger to be based on the timeline starting and whether or not the variable currently is at X value.