Skip to main content
jonathanp9139783
Known Participant
June 29, 2018
Answered

Keeping a button hidden until certain other buttons have been clicked

  • June 29, 2018
  • 1 reply
  • 374 views

Is there a way to keep a specific button hidden on a slide until other buttons have been clicked? For example, I have a "Continue" button at the bottom of my slide. I don't want that button to appear until all other buttons on the slide have been clicked to view their content. I figured out how to retain custom states for the buttons, so maybe have some kind of conditional action on entry of the slide that says "if all buttons have a state of X, then show Continue button, else keep it hidden".

    This topic has been closed for replies.
    Correct answer Lilybiri

    Have posted this already many times. here we go. Since you do not have an imposed sequence for the buttons to be clicked:

    1. Make the button that has to be viewed after the other buttons, invisible in output (eye icon in Properties panel).
    2. Create a user variable, a Boolean, for each of the buttons. Will label them v_one, v_two..... Set their default value to 0.
    3. You'll need n advanced action with two decisions. I don't know which version you are using, so no screenshots:
      1. First decision: does what you want to happen when the button is clicked (Change state, or Hide and Show...). Make sure that the option 'Continue Playing Project is unchecked'. I always recommend also to have all the pausing points for those buttons at the same moment, or have only one pausing point?
        Add the command 'Assign v_one to 1' where you choose the variable corresponsing with that button.
      2. Second decision has to be conditional:
        1. IF v_one is equal to 1  AND
               v_two is equal to 1  AND
               ....
               v_last is equal to 1
          Show Bt_Continue

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    June 29, 2018

    Have posted this already many times. here we go. Since you do not have an imposed sequence for the buttons to be clicked:

    1. Make the button that has to be viewed after the other buttons, invisible in output (eye icon in Properties panel).
    2. Create a user variable, a Boolean, for each of the buttons. Will label them v_one, v_two..... Set their default value to 0.
    3. You'll need n advanced action with two decisions. I don't know which version you are using, so no screenshots:
      1. First decision: does what you want to happen when the button is clicked (Change state, or Hide and Show...). Make sure that the option 'Continue Playing Project is unchecked'. I always recommend also to have all the pausing points for those buttons at the same moment, or have only one pausing point?
        Add the command 'Assign v_one to 1' where you choose the variable corresponsing with that button.
      2. Second decision has to be conditional:
        1. IF v_one is equal to 1  AND
               v_two is equal to 1  AND
               ....
               v_last is equal to 1
          Show Bt_Continue