Forum Discussion
NathanDill
6 months 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
6 months 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