Trigger - jump to next slide when typing correct word

May 20, 2024

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.

3 Replies
Nedim Ramic

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