Forum Discussion
Trigger confusion
Hi everyone
I'm puzzled by the behaviour of two identical triggers I have in two different projects.
In both projects I have the student type their name and the press ENTER to jump to the next slide. In one project it works like a charm and in the other it doesn't assign the value to the variable.
In project 1 - I'll call this 'S4' for semester four, it works perfectly, see attached file 'S4, trigger'. In project 2 ('S1' for semester one) it just leave a blank space when I use the variable, see attached file 'S1, trigger'.
I have tried deleting and re-applying the triggers, I have deleted the slide and recreated it, but it ends the same way. Does any of you spot an error or have ideas what to try next?
Hi Kirsten,
I don't see any difference in your screenshots either. So it's hard to pinpoint your problem based on that alone. But I might have an idea what might be causing this not to work (although I don't know why it works in one project and not the other): if the "change slide" trigger is fired before the value is changed, the value is not changed.
You could change the "change value" trigger so that it also fires when the user hits Enter after clicking on the text input field. And then you can reorder them so that the value is changed before the slide is exited.
- CharlotteHaslerCommunity Member
Hi Kirsten,
I don't see any difference in your screenshots either. So it's hard to pinpoint your problem based on that alone. But I might have an idea what might be causing this not to work (although I don't know why it works in one project and not the other): if the "change slide" trigger is fired before the value is changed, the value is not changed.
You could change the "change value" trigger so that it also fires when the user hits Enter after clicking on the text input field. And then you can reorder them so that the value is changed before the slide is exited.
- KirstenFalchCommunity Member
Hi Charlotte,
I considered the sequence of triggers as well, but Storyline wouldn't allow changing the order.
I tried adding a new trigger that changes the variable when the user hits Enter. There are no pre-filled options to choose from, so I crossed my fingers and typed 'typed value'.
It worked! 👍 😉Thanks for your input. It's much appreciated 😊