Forum Discussion
Seeking feedback: optimizing triggers in multiple selection
Hello eLearning heroes,
I'm currently developing a model selection page and would greatly appreciate your input on how to optimize it.
My aim is to allow users to select multiple conditions, after which the matching models will be featured on the slide.
I've already implemented the feature (https://360.articulate.com/review/content/5fc6a61a-30a6-43f4-a5fe-401bb3c59ea3/review), and it's functioning well. However, I'm considering ways to simplify all of triggers, especially since I'll be incorporating around 20 models and over 5 features on a single page for user selection. This could potentially be quite cumbersome.
I've attached the Storyline file and would welcome any ideas or suggestions you may have. Thank you.
- AndrewHanleyCommunity Member
Hi Maggie,
I love little interactions like this. And one way that really helps me tidy up code is to put it on its own layer. The layer only lasts .25 secs and auto closes. Its like a little function that fires then closes.
Have a look at the edited story file, but essentially what we do is:
1. every time the user clicks the tickbox, show code layer;
2. the code layer starts by changing all the states back to normal;
3. then it finishes by checking each object and changing its state to "OK" if the conditions are met.P.S. I changed your conditions so that each object is unique, but its easy to change it to whatever you need.
- MaggieLee-7170bCommunity Member
Hi Andrew, thank you for your advice! A code layer is really a good idea I never thought about. It completely solves my question about what WHEN event should I set to trigger conditions. Thank you again!
- NedimCommunity Member
Another solution is to implement the Model approach, where you set Model variables based on the current selection. For instance, Model A is true when VSA are selected, otherwise it's false. Similarly, Module 2 is true when VS are selected, else it's false, and so on. Then, the state of each picture changes according to the value of Module variables. An advantage of this approach is that there's only one trigger on the base layer jumping to the Selection layer, where all programming logic resides. This eliminates the need to jump back and forth during updates, making it easier to manage and update when transitioning to other slides. Triggers example and .story file attached for reference.
- MaggieLee-7170bCommunity Member
Thank you Nedim! It's a good idea considering the efficiency and ease of management. I appreciate your contribution a lot! Thanks again!