Forum Discussion
Help getting "clicked" options from list on other slides
I need to create a few slides for our learners to work through a values identification activity using Storyline 360.
Learners will start with a list of 30–40 clickable words (the values). Ideally, there is a timer on this slide, but one problem at a time. The learners will select 10 - 20 of the words (values) in 90 seconds.
Then, on the next slide, I need a way to show the 10-20 words they selected. Again, ideally with a 90-second timer. Here, they narrow down the list from the 10 - 20 words to 5. So they need to see their first selections and have a way that they can select just 5.
So on the next slide, I need to show those 5 words, with a 60-second timer. The learner will have just 60 seconds to go from their 5 to 2.
Final slide will show the 2 the selected.
Breakdown
Slide 1: 40 words they can select. (Timer for 90 seconds).
Slide 2: shows the 10-20 of the 40 they selected. They narrow down to 5, (Timer for 90 seconds).
Slide 3: Shows the 5 words they selected from slide 2. They narrow down to 2. (Timer for 60 seconds).
Slide 4: Shows the 2 words they selected.
Any and all help on this is appreciated.
7 Replies
- AndrewBlemings-Community Member
An interesting puzzle to be sure. You don't mention any randomization, which is good because that would complicate things more, but if you need those 10-20 to be shuffled or something, that's a whole other aspect of design.
Moving ahead with the assumption of no randomization, the next obstacle is getting the info from one slide to the next. I can imagine you creating a variable for each button to carry over the information of whether or not it was clicked, but that would be a lot of variables.
A more streamlined method would be to leverage JavaScript. The first slide learners visit could contain something like
window.choices = [];That would create a JavaScript array/list called choices, accessible by any other JavaScript code on any slide so long as the learner doesn't clear their cache.
Then each of your buttons could have a simple line of code that runs when they're clicked, adding their pushed value to the list.
window.choices.push('word12');If you want learners to be able to de-select, you'll need logic for a splice() trigger as well. It'd be easier on you to just make it so when people click a word, they better be sure. If they really need to be able to take back a selection, then splice will do that.
That array of values/choices can then be read by a subsequent slide and assigned out to variables that sit in buttons. If slide 3 has five buttons, the text of the buttons can be variables like slide3Word1, slide3Word2, and so on. And then your slide's script can loop through the array and use the setVar() method to transfer those array values into the sequence of button label variables. In other words, the text that buttons show can be dynamically changed at runtime.
This is a lot and can become bigger, so I wonder if there's not a way to simply reuse the one slide that starts with all of the words? If I'm looking at a slide of 40 and I need to click 15, when I'm done, can't the unselected ones be set to a Hidden state? Use a layer to prompt the learner about what comes next, and then use the end of that layer to reset all of the word buttons that weren't hidden (because they had the selected state), and the learner goes again with the buttons that remain. I feel like this way would save a lot of duplication and cross-slide interfacing.
- KaelaSchommerCommunity Member
AndrewBlemings- Thank you!
I'm unfamiliar with JavaScript, so that makes me somewhat nervous; the margin of error seems large for me.
I do like the idea of using the same slide and then hiding the words that weren't selected, triggered by a button. I'm going to play with this but any advice would also be appreciated!
- AndrewBlemings-Community Member
I mocked up a simple prototype to better concrete what I was thinking of: https://360.articulate.com/review/content/9b021789-5f9f-421f-a63f-42b30cbbeccc/review
The .story file is downloadable from the Versions dropdown. I didn't do the final loop/layer that responds after someone clicks the final, top one, but just because I think the idea comes through. Having 40-50 buttons will require a large amount of triggers, but this seems like a project that can benefit from a lot of copying and pasting.
To speed up development, I'd recommend designing one button how you want it color-wise and shapes and font and such, and then copying and pasting it out to 50. That'll save you from, for instance, needing to delete the unused states for each button individually. Delete them with the first button, and then just duplicate it out.
The same works with triggers too. I created the one trigger that resets the Avocado button at the end of loop 1 if its state is Selected, and then duplicated that trigger and just changed the button references for each one. Much faster than creating each trigger manually.
And then I duplicated the loops too. Once I completed all of the loop 1 layer, I copied and pasted it into loop 2, only needing to change the Set loop1Complete trigger to Set loop2Complete instead.
Let me know if you have any questions! :)
- AaronBurgessAUCommunity Member
The only means I can think of that relies on SL360 triggers is a lot more long winded in checks that using Javascript. And I don't know anything about Javascript. I guess that's what AI is for.
On the Base Layer of the slide where you have your words, each word needs a select state. I used 5 words for this example: cat, mouse, goat, lamb, cow
I also have 5 variables word1, word2 and word3 all with value of empty. I hate leaving variables blank. It's my quirk.
The trigger for EACH word would be (on the base layer)
Set state of "cat" to Selected
When user clicks "cat"
If state of "cat" = Normal
Else: Set state if "cat" to NormalThis trigger above toggles between the word "cat" being selected or not.
Because mine is not set to a timer, I had the next action occur when I click a NEXT button. The NEXT button shows the layer which assigns the values to the words that have been selected.
For my ease of use I wanted to assign a max of 3 choices (because I wasn't limited to a timer)
Each value to be assigned in this layer was activated by a rectangle I placed in the layer's timeline. I only did it this way so I didn't have a layer that had a heap of triggers based on When Timeline Starts. Also this method allows each batch of triggers to be closed or expanded for easier reading.
Also each rectangle is in order of testing for word1, word2 and word3. So rectangle 1 begins on the timeline first. Rectangle 2 starts a quarter of a second later and rectangle 3 another quarter after that. This makes sure all the tests are not done at the same time.
So the triggers on this layer starts with rectangle 1.
Set word1 to "cat"
When timeline starts on rectangle 1
If the state of "cat" = Selected
and word1 = emptyThis was repeated for mouse, goat, lamb and cow.
My next trigger for rectangle 2.
Set word2 to "cat"
When timeline starts on rectangle 2
If the state of "cat" = Selected
and word2 = empty
and word1 (is not equal to) "cat" (this just makes sure the same word can't be assigned twice)This trigger is repeated for mouse, goat, lamb and cow
eg.
Set word2 to "mouse"
When timeline starts on rectangle 2
If the state of "mouse" = Selected
and word2 = empty
and word1 (is not equal to) "mouse"And the next batch of triggers on this layer is starts when rectangle 3 enters the timeline
Set word3 to "cat"
When timeline starts on rectangle 3
If the state of "cat = Selected
and word3 = empty
and word1 (is not equal to) "cat"
and word2 (is not equal to) "cat"(again making sure the word "cat" hasn't already been assigned to a previous value)
As you can imagine if you have 40 words, in my version you would need to test all 40 words for the 20 variables you have.
My system doesn't care what order a user selects the words and if they unselect some words. And since mine checks for 3 variables if I only select 1 of the words the other 2 variables stay empty.
Best solution I have sorry.
- DShawCommunity Member
One way to do it would be to make all the words buttons with all 40 on each slide. Add triggers to hide the selected buttons between slides. Sounds like a lot of work but they would all be cut and paste once the first is setup with only a ID change in each button trigger
Related Content
- 2 months ago
- 1 year ago