I would like to trigger a slide to lightbox in Storyline when a text entry box contains a certain word, or certain words. I'm struggling to do this with Javascript and conditions, can anybody suggest how I may get this working please?
Hi Alice! It sounds like an interesting project! I'm not a JavaScript expert, but I did find this other discussion about something similar. I thought I'd share in case that ends up working for you.
Hello everyone! I am trying to have a layer display if the text entry field contains certain words. I just want the user's answer to contain any of my chosen words but the order does not matter. Any advice?
Looks like a Freeform Text Entry questionis what you need! Using this slide, you'll be able to specify all of the correct words that a learner can enter to trigger a correct response.
Note that this will only work for one word, so if you need more than one word to show a layer, you can just design a custom slide that makes use of multiple text entry inputs. I've attached a sample so you can see an example of a slide that makes use of multiple inputs to show a correct layer.
4 Replies
Hi Alice! It sounds like an interesting project! I'm not a JavaScript expert, but I did find this other discussion about something similar. I thought I'd share in case that ends up working for you.
Hi Alice, I tried it in a different way, instead of having one lightbox that appears at a certain word, I made two.
Kindly see attached.
Hello everyone! I am trying to have a layer display if the text entry field contains certain words. I just want the user's answer to contain any of my chosen words but the order does not matter. Any advice?
Hello Kelsey,
Looks like a Freeform Text Entry question is what you need! Using this slide, you'll be able to specify all of the correct words that a learner can enter to trigger a correct response.
Note that this will only work for one word, so if you need more than one word to show a layer, you can just design a custom slide that makes use of multiple text entry inputs. I've attached a sample so you can see an example of a slide that makes use of multiple inputs to show a correct layer.