Forum Discussion
Trigger - jump to next slide when typing correct word
Is there a way to create a trigger to type a specific word (ex. asthma) that will automatically jump to the next slide after typing correctly? I can create a trigger for this by pressing 'enter' key after typing word correctly, but looking to have trigger for just typing the word with no need to press enter.
4 Replies
- Nathan_HilliardCommunity Member
See this post for an idea
https://community.articulate.com/discussions/articulate-storyline/variables-with-text-entry-help
- NedimCommunity Member
It doesn't seem feasible without JavaScript. Try the following code within "Execute JavaScript When the timeline starts on this slide".
const inputs = document.querySelectorAll('.acc-textinput');
inputs.forEach((i) => {
i.addEventListener('keyup', () => {
i.blur();
i.focus();
});
});
Attached is a video demonstrating this interaction, along with the .story file for reference- swilli7Community Member
Hi Nedim,
Thanks for this example! It works perfectly on a regular slide but I've noticed if you copy and paste it on a layer, it doesn't seem to work. Is this only applicable to the the base slide?
Thanks!
- NathanDillCommunity Member
Thank you for the examples! I'll test this out.
Related Content
- 9 months ago