Removing blank spaces from variable reference slide

Sep 25, 2019

I need some help with my results slide build from referencing text variables.

Slide 1: There are 12 selections, and the learner is instructed to click on the selections that apply to them.

Slide 2: When I reference the variables, I can't figure out how to remove the blank spaces left from the variables the user does not select. I'd like to display a  list with only the selections they chose being visible. 

Can anyone help?

1 Reply
OWEN HOLT

If you wish to avoid JavaScript, build a state for each possible selection and on every "result object" on your results slide. Update them based on user selection and 1 or more tracking variable.

Here is a quick example I threw together. Click the cities on the left and they appear on the right in the order you selected them. You do not need to pick all 10 cities.   This interaction uses only 1 tracking variable, a number of states for each results object, and trigger logic that changes the state based on the button clicked and the tracking variable.  (i.e. change result 3 to "Barcelona" when the Barcelona Button is clicked, IF the tracking variable is = to 3).

The .story file is contained in the resources of the example located HERE.

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