JavaScript Triggers Moving in Trigger Panel
Oct 06, 2020
Hello Heroes,
I am wanting to edit a storyline that I built in January of this year. Before we were able to copy and paste triggers, I would use buttons that could be copied and pasted because they would bring their triggers along with them. This project is built using that method. I want to adjust the JavaScript so that it accepts a wider range of values. When I open any of the JavaScript triggers, I am able to edit and save them, but when I click save, the trigger jumps to the top of that button's trigger panel. I am then unable to move the trigger back to its original place. This throws off my calculations because the order of the triggers matters. Has anyone else experience this issue? I just updated to version v3.44.23192.0. Thanks for any insight or help!
Matney
9 Replies
Hello Matney!
Anytime you edit a trigger, it should jump to the top of the trigger panel under the object. I can see how in this case, it is not ideal, especially when you've already created a specific trigger order.
There are tons of community members who use the Execute Javascript trigger often, so I'll leave it to them to step in with a workaround!
Hi Lauren,
I'm curious what's the rational behind this behavior. Why would anybody think it's useful or desired that a trigger jumps to the top of the list after having been edited? Can you provide an example of a work case where this actually serves a purpose?
I don't think triggers do jump to the top of the list they should stay where they are when you edit them and new or pasted triggers should be at the bottom of the list.
Hi Lauren that looks like a bug to me triggers should not move when you edit them.
I think it is the when state changes event that is causing the issue the new trigger panel is reorganising them
Thanks Phil. I have that suspicion as well. I am hoping that I can carefully reassign the triggers and keep everything working properly.
Hi Matney,
Thanks for reaching out and sharing your experience! I tested your file in both Update 43 and 44 and observed the same thing.
I've shared your file with a support engineer to take a closer look, as they'll be able to provide more insight into the expected behavior here. Be on the lookout for a reply soon!
Thank you!
Matney Jorgensen
Mathematics
(801)610-8185
mjorgensen@alpinedistrict.org
https://eastshore.alpineschools.org/
778 East Bamberger Drive American Fork, Utah 84003
<https://www.hubspot.com/email-signature-generator?utm
Hi Matney,
It looks like your email signature came through when you replied via email. You can remove that if needed by clicking ‘Edit’ beneath your response. Here’s a quick Peek video if you need help.
This discussion is closed. You can start a new discussion or contact Articulate Support.