Forum Discussion
Collating checkboxes
Hi Everyone,
I have three slides that are all check boxes. About 10 perslide. The customer has asked for the user to select text boxes that apply to them. From here they want a final slide that collates those particular selected ticked boxes.
Is there a way to do that and can someone tell me how?
Thanks :)
- JudyNolletSuper Hero
Hi, Jeanine,
You'll need to work with variables and trigger conditions to do that.
- Create a T/F variable (with an initial value of False) to track each checkbox.
- On each slide, for each checkbox, add a trigger to the Next button that adjusts the corresponding to variable to True with the condition that the given checkbox is Selected. Those triggers would look something like this:
Note: Be sure that all of these triggers appear before the "jump to next slide" trigger. Otherwise, they won't run, because Storyline can't execute a trigger after it's left the slide.
- On the "results" slide, add separate text boxes or shapes corresponding to all the checkboxes.
- Unfortunately, since there's no way to know what combination a user might click, you have to assume it's possible they clicked everything.
- The objects could be set so their initial state is Hidden, and then plan to change the state to Normal if the corresponding variable = True.
- Another option would be to start with the Normal state, and then change it to another state if the corresponding variable = True.
- Add triggers that show the appropriate objects based on what variables are True. Those might look something like this:
FYI: Yes, it's possible to display a list with just the selected items -- if you know how to use JavaScript (or you know someone who knows JS). The above solution is for using only the built-in functionality of Storyline.
Here's more info about conditions and variables:
- https://community.articulate.com/series/articulate-storyline-360/articles/storyline-360-working-with-triggers#conditions
- https://community.articulate.com/series/articulate-storyline-360/articles/articulate-storyline-360-user-guide-how-to-work-with-variables
BTW, depending on what the checkboxes are, this post might be of interest: