Forum Discussion
jonathanw
6 days agoCommunity Member
Jump to next slide on entering correct text into a text entry field
Sorry, I know this has been discussed before but I cannot find the thread.
I am creating a software simulation where the module needs to move to next slide immediately on entering the correct text ...
- 5 days ago
Try this simple code and ensure the triggers are replicated as shown below. I’ve attached a story file just in case.
const input = document.querySelector(".acc-textinput"); setVar("TextEntry", ""); input.addEventListener("keyup", () => { setVar("TextEntry", input.value.trim().toLowerCase()); });
Nedim
5 days agoCommunity Member
Try this simple code and ensure the triggers are replicated as shown below. I’ve attached a story file just in case.
const input = document.querySelector(".acc-textinput");
setVar("TextEntry", "");
input.addEventListener("keyup", () => {
setVar("TextEntry", input.value.trim().toLowerCase());
});