Show button on a slide after multiple true/false are answered

HI, I've been searching the forums for an answer and while I've come close I'm missing something. 

I have two true/false questions on a slide that are not going to be scored. I want the learners to answer both questions, then show the Next button I have on the slide (I'm not using the player defaults). 

I'm using buttons for the true/false. I tried to use a slide trigger that says When the learner has answered (button state is visited) true or false to question 1 AND has answered (button state is visited) true or false to question 2 show the next button. 

I can't figure out how to use an OR and AND operator in the trigger.

I appreciate any suggestions or recommendations. Thank you. 

7 Replies
Antony Snow

Hi Kathy - welcome to Heroes!

Assuming that you have the 2 answer options for each question tied to button sets (this allows only one of the buttons in the set to be selected at once), you can control when your 'Next' button becomes visible using a couple of variables:

  • Create 2 T/F variables ("Q1" and "Q2") and set their default value to FALSE
  • Add a trigger that changes "Q1" variable to TRUE on condition that either of the answer buttons for your first question are equal to selected
  • Duplicate this trigger and adjust it so the variable "Q2" changes to TRUE on condition that either of the answer buttons for your second question are equal to selected
  • Edit the state of your 'Next' button so its initial state is hidden
  • Add a trigger that changes the state of your 'Next' button to normal on the condition that variable "Q1" and "Q2" are equal to TRUE

I hope this helps

Antony

Michael Hinze

In your trigger you had not specified a variable that needs to change for this trigger to fire. See attached a revised file where I also added one trigger to account for the fact that changing either Question1Answered or Question2Answered can trigger the Next button to be shown.

Antony Snow

Hi Kathy,

Having seen your response and Michael's solution, I clearly hadn't thought through my initial response

I have revisited your issue and have managed to put together another working example for you, which I have attached. This uses the states of other objects (these are on the slide for the purpose of this example, but you can move them off the slide so the user won't see them) rather than variables. I have also used radio buttons, but the principle will work the same for regular buttons. It has the same result as Michael's solution but as you will see, there are a lot less triggers!

Antony

Michael Hinze

Antony Snow said:

Hi Kathy,

Having seen your response and Michael's solution, I clearly hadn't thought through my initial response

I have revisited your issue and have managed to put together another working example for you, which I have attached. This uses the states of other objects (these are on the slide for the purpose of this example, but you can move them off the slide so the user won't see them) rather than variables. I have also used radio buttons, but the principle will work the same for regular buttons. It has the same result as Michael's solution but as you will see, there are a lot less triggers!

Antony

Hi Anthony, nice solution. Initially, I was tempted to suggest something similar. In the end though, I wanted to keep Kathy's setup intact as much as possible. That's the great thing about Storyline, there are many, many ways to achieve the same result
Antony Snow



Michael Hinze said:



Hi Anthony, nice solution. Initially, I was tempted to suggest something similar. In the end though, I wanted to keep Kathy's setup intact as much as possible. That's the great thing about Storyline, there are many, many ways to achieve the same result



Thanks Michael. The ability to achieve the same result in many, many ways is what I like about SL. It might not always be the most effective way, but S/L appears to cope quite well with my attempts at logic