Select from a list so that what I selected stays visible and what I didn't select disappears

Oct 22, 2018

Hi,

Here's what I'm trying to do and have failed to accomplish so far...

Choices

 

7 Replies
Susi B

Hi,

you could trigger this via variables, but this will be a lot of triggers and variables if you want to build this on one slide: 15 rows multiplied with the number of answers, so 15x4 choices=60 variables for the choices + a row counter per row = 75 variables.

If you want a feedback layer to be shown at the end you can use a freeform (multiple answers). I build you a little dummy of how this could look like and what triggers you may need. Per row there are 16 triggers, so this will be 240 triggers only for the rows/choices and 5 variables per row.

How I build this:

1 true/false variable per choice (starting with false)

1 number variable per row (starting with 0)

Trigger:

- change variable (rowXchoiceX) to true/false when user clicks rectangle rowXchoiceX

- add +1 to rowX when variable changes (rowXchoiceX) when rowXchoiceX equals true

 - subtract -1 to rowX when variable changes (rowXchoiceX) when rowXchoiceX equals false

- change state of rowXchoiceX to hidden when rowX equals or is higher than 2 when rowXchoiceX equals false

Regards

Susi

Susi B

Hi Joel,

sure. If a user deselects his first answer and select it again you would have the value 2 if you don´t substract the choice again. So you can change the first answer as long as you haven`t chosen the second one. The toggle variable is a simple way to change a true/false variable.

For excample:

user clicks on choice 1 > toggle switches choice 1 to true AND adds 1 WHEN choice 1 changes to true

user clicks choice 1 (which is now true) again > toggle switches choice 1 to false AND substracts 1 WHEN choice 1 changes to false

So it´s an easy on/off (true/false; active/not active) switch. :)

When you use %insertvariablenamehere% in a textfield you can see what is happening with the variables when you click the choices.

Susi

Joel MacDonald

Thanks for that.

So I've tried rebuilding the interaction correctly based on your advice. It didn't work. It's seems to still be responding to the my old variables and triggers instead of the new ones. Any ideas what I might have missed? Maybe I'll just have to start from scratch to get it to work?

Susi B

Hey :)

First you have to understand states. If you use a prebuild state like normal, mouse over, selected etc. you are triggering these states WITHOUT using a trigger. They have a prebuild behavior. Thats why your trigger changing the state to selected doesn´t work. The state changes as soon as a user clicks no matter what condition you are giving this trigger. So pre build states (or actions) are "stronger" and can´t be controlled like this. I rebuild A1, B1, C1 and D1 for you to see what I mean with a new state named "block" and adjusted the change state trigger.

Your substracting is not working, because you don´t toggle the variables. I adjusted this for A1-D1.

I inserted textfields for you so you can see what is happening with your variables in row 1.

Hope this helps you understanding what you are buidling. :)

FYI: Triggers are activated from top to buttom in your trigger list. So the first action should be in the top like you already build. This can sometimes cause problems too.

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