Forum Discussion
Multiple match question
The learner has to select multiple answers (the blue boxes) and click "submit". But I want the selected boxes to appear in the grey box on the left as they stack on top of each other. I made the grey box big enough to fit 3 blue boxes because there are three answers. Is there a way to approach this without using java code?
Thank you so much!
2 Replies
- stefanocrabaCommunity Member
Hi Noel,
one way could be to make a state change in the grey area; see if the attached make sense and can be used in your case.
- daniel-brooksCommunity Member
Hi Noel, totally doable without JavaScript. The trick is combining Selected states with a few simple triggers.
First, give each blue box a Selected state (a checkmark or a different fill) so learners get clear visual feedback when they click a choice.
For the stacking effect, the simplest approach I have used: duplicate each blue box, place the smaller copies stacked inside the grey area, and set their initial state to Hidden. Then add a trigger on each original blue box: change the state of its stacked copy to Normal when the user clicks it, but only when that copy is currently Hidden. Add a second trigger to flip it back to Hidden when clicked again, so learners can deselect.
If the boxes need to stack in the exact order the learner clicked them, add a number variable (for example, pickOrder). Each click adds 1 to the variable, and you can use conditions on the triggers so the right copy appears in the right slot. That said, for a simple select-up-to-3 question the hidden-copy toggle is usually enough and much easier to maintain.
For Submit, create a true/false variable per blue box (for example, BoxA_Selected) and toggle it alongside the visual changes. Then put conditions on the Submit trigger to show the Correct or Incorrect layer based on which boxes are selected.
Stefano's sample file looks like a similar pattern, so that is worth opening too. Happy to walk through the trigger setup if you get stuck on any step.
One extra tip before you publish. Test the slide as a learner who changes their mind, selecting, deselecting and reselecting in a different order, and check the grey box, the Submit state and the feedback layers still line up. I learned to document each state change in plain step by step language while working witha small training team
on a similarly hands-on process guide, and it made handover and troubleshooting much easier for the next person who edits the file. Keeping a short note of the variable and trigger behind each box alongside the slide also means future updates take minutes instead of guesswork.