Step 3: Create a JavaScript Trigger
To improve how the interaction responds to learner input, create a trigger that runs JavaScript in Storyline 360 when the slide timeline starts.
Trigger Settings:
- Action: Execute JavaScript
- When: Timeline starts
- Object: This slide
● Open the JavaScript editor and paste your script.
const input = document.querySelector(“.acc-textinput”);
setVar(“TextEntry1”, “”);
input.addEventListener(“keyup”, () => {
setVar(“TextEntry1”, input.value.trim().toLowerCase());
});
● Click OK to save the script.
[Disclaimer: The content in this RSS feed is automatically fetched from external sources. All trademarks, images, and opinions belong to their respective owners. We are not responsible for the accuracy or reliability of third-party content.]
Source link
