Forum Discussion
How can I preserve text variables when I copy slides or text entry fields?
Hi Judy,
Thank you for such a detailed reply. In this instance, though, I do not think a reference to the variable will work. I am trying to simulate the login experience of being able to click freely between the Username and Password text boxes, so I am reusing the variables themselves to ensure that the student can continue to enter and edit the username and password on each slide in the simulation.
For example, if the student presses Enter when they input the incorrect password, it will bring up a new slide that shows the UI's login error screen, and they'll be able to alter the value in the password text box to meet the necessary conditions to proceed. Another example is that each password entry slide has both "hide" and "reveal" layers that use the same text variable to toggle visibility. I use copy-pasting a lot to preserve any hotspots, objects, or triggers that appear in multiple locations, but each time I'm having to reassign the correct text variable to these text entry fields.
It sounds like there is no way for Storyline to carry forward the variables assigned to text or numeric entry fields if you copy them into a new slide or layer, which is definitely an inconvenience.
Thanks again for your help.
Oh, I misunderstood what you wanted to do.
Yes, to keep the value and allow the user to reset it from another entry field, you do have to adjust the trigger(s) so all the entry fields update the same variable.
Related Content
- 10 months ago
- 10 months ago
- 10 months ago
- 10 months ago