Forum Discussion
Labels disappear randomly on a Drag&Drop exercise #JavaScript #Storyline
- 7 months ago
Hi Claire,
as far as I can see, the issue is that the variable VariableDropTemp carries over from the previous slide. So the item that was dropped last on the first question slide will disappear on the second slide if you drag it onto the target first.
If you add a trigger that sets the variable to blank when the timeline starts on the second and third question slides, the problem should disappear.
Please do test it extensively after adding this trigger to make sure that adding it didn't break anything else.
Hi Claire,
as far as I can see, the issue is that the variable VariableDropTemp carries over from the previous slide. So the item that was dropped last on the first question slide will disappear on the second slide if you drag it onto the target first.
If you add a trigger that sets the variable to blank when the timeline starts on the second and third question slides, the problem should disappear.
Please do test it extensively after adding this trigger to make sure that adding it didn't break anything else.
- ClaireLepretre7 months agoCommunity Member
Hi Lisa,
While waiting for a response, I decided to try to avoid using the same variables from one screen to another. So I created as many new, different variables as needed for each screen. This way, there's no more confusion. It seems to work!
However, I'll note your solution, which seems to be faster, and I thank you very much for taking the time to answer my question 🙏