Forum Discussion
NathanDill
2 years agoCommunity Member
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...
Nedim
2 years agoCommunity 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
- swilli72 months agoCommunity 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!
Related Content
- 9 months ago
- 5 months ago