Multiple questions (radio buttons) on 1 slide with a 'check if selected' condition on reveal answers button

Jun 17, 2020

Hi Everyone

Very new to storyline and been thrown in the deep end.
Ive managed to create a single slide with 5 true/false questions using radio buttons and button sets. The initial state of the radio buttons is unselected, and the user picks true or false then the button to reveal the answers (which is a tick or cross graphic)

The issue I have is the user can click 'reveal answers' button at anytime and the answers will be shown. Ive been trying to create a trigger(s) that will check either of the true/false buttons are selected.

If they are not either the 'reveal answer' button is greyed out or a popup prompts to answer all questions.

Ive tried a few ways from tutorials but no joy, happy for suggestions. 

2 Replies
Judy Nollet

Hi, Adam,

  • Set the initial state of the Reveal Answer button to Disabled (or Hidden).
  • Create five T/F variables, one for each question. (For example, call these variables, doneTF1, doneTF2, etc.)  Set the initial value to False. 
  • Create one number variable, with the initial value of 0. (For example, call this variable countClicks.) 
  • Add two triggers to each radio button:
    1. Change the value of the corresponding variable to True. So, for example, both the True and False buttons for the first question would change the doneTF1 variable to True. The True and False buttons for the second question would change the doneTF2 variable to True. Etc. A given variable will only be True if the user answered the corresponding question. (It doesn't matter whether they change their answer.)
    2. Change the value of the countClicks variable however you want. The simplest is to add 1 to the value. But it doesn't really matter. The point is that you'll be able to use this one variable to check whether every question has been answered. In other words, you don't care what the value is; you do care that the variable changes.
  • Add a trigger to the slide that changes the state of the Reveal Answer button to Normal when the countClick variable changes, on condition that all of the doneTF# variables are True. (See inserted image for what this trigger looks like.) 

The attached file has a bare-bones version of this (though with only 3 sets of T/F buttons). Refer to that if you're not sure what I'm talking about in the above instructions. And if you have no idea how to create variables or add conditions, then I recommend you check out Articulate's tutorials and user guides. Variables and conditions provide the real power in Storyline. 

 

This discussion is closed. You can start a new discussion or contact Articulate Support.