Setting Up a JavaScript Trigger
Dec 05, 2017
By
Leah Morgan
Hello!
I'm designing an 'emulation' type course in Articulate and have run into a bit of a roadblock. For a certain part of the course I need three dependent list boxes. To help illustrate: they pick a number from the first box, then depending on the number selected the second box will have certain numbers to choose from, and then depending on the number picked from the second box, the third box will populate with a set number.
I know technically this is probably possible with triggers, but the level of complexity would be rediculous. Does anyone know if there is an easier way to do this that I am over looking? Does Articulate support something written in JS?
Thank you!
4 Replies
Choose the "Execute Javascript" trigger.
There is an option in the wizard to place the script.
It works just like any trigger, and you can choose when to have it executed.
Yes I noticed that. If I use that though I'm assuming a will have to write a different java script snippet for each field that is dependent on the one before it? I'm not real familiar with Java, but if I have a general idea of how to set it up I'm sure I can figure it out.
My first choice would be to use SL triggers, because I'm not sure how good of a programmer will come along in a couple of years to do maintenance on these projects.
Either way, I would populate the second and third lists with references to variables, and use the js (or triggers) to set the contents of those variables. So two snippets of code.
Ok, I'm going to mess around with it a bit and see what I can come up with. Thank you!
This discussion is closed. You can start a new discussion or contact Articulate Support.