Forum Discussion
Text Won't Appear - What Next?
Hi,
I am running into a real mystery with this project. I have a text entry field on slide 2.15. When I type into the text entry field in Slide View, the text appears in the field. But when I run through the whole scene in Scene View, I type on this slide and the text won't appear.
If I put a button on the first slide and jump to slide 2.15 in Scene View, it still works.
The issue only occurs if I go through all of the slides to get to 2.15.
I feel like there might be something on a previous slide corrupting slide 2.15, maybe one of the codes?
*Note: you only need to view Scene 2 for this issue.
*Note: The audio is not finished.
I had a (very quick!) look at it. Looks like several slides in Scene 2 (2.5 through 2.13, plus 2.18 and 2.19) use a JavaScript trigger to let learners type without clicking into the field first. The problem is that those triggers kept listening for typing even after you've moved on to the next slide. They're never switched off. So when you walk through the scene, by the time you reach 2.15 the trigger from an earlier slide is still running in the background and grabbing every key you press, which is why nothing lands in the field. Jumping straight to 2.15 works because none of those earlier triggers ever ran. To fix I made each trigger switch off the previous one when a new slide starts, and added "switch everything off" trigger on 2.14 and 2.15, since neither of those slides runs a script of its own. One other thing, the script on 2.13 (Customer PO) had a small error in it that stopped it working at all, so typing on that slide was never being captured either. That's fixed too.
Not had chance to test properly but give this version a try
1 Reply
- DShawCommunity Member
I had a (very quick!) look at it. Looks like several slides in Scene 2 (2.5 through 2.13, plus 2.18 and 2.19) use a JavaScript trigger to let learners type without clicking into the field first. The problem is that those triggers kept listening for typing even after you've moved on to the next slide. They're never switched off. So when you walk through the scene, by the time you reach 2.15 the trigger from an earlier slide is still running in the background and grabbing every key you press, which is why nothing lands in the field. Jumping straight to 2.15 works because none of those earlier triggers ever ran. To fix I made each trigger switch off the previous one when a new slide starts, and added "switch everything off" trigger on 2.14 and 2.15, since neither of those slides runs a script of its own. One other thing, the script on 2.13 (Customer PO) had a small error in it that stopped it working at all, so typing on that slide was never being captured either. That's fixed too.
Not had chance to test properly but give this version a try
Related Content
- 3 months ago
- 5 months ago
- 1 year ago