Forum Discussion

YolandaWang-e19's avatar
YolandaWang-e19
Community Member
2 years ago

Text box: Change its state based on a specific variable

Hello Storyline experts, 

The purpose of this interaction is that users can enter the input in each text box on Slide 1. However,

  • If the User only enters the input on the 1st text box (others are blank) on Slide 1, the text box on Slide 2 will show the exact text on the 1st text box of Slide 1.
  • If the User only enters the input on the 1st text box and the 2nd text box on Slide 1, the text box on Slide 2 will show the exact text on the 2nd text box of Slide 1.
  • If the User only enters the input on the 1st / the 2nd / the 3rd text box on Slide 1, the text box on Slide 2 will show the exact text on the 3rd text box of Slide 1.
  • If the User only enters the input on all text boxes on Slide 1, the text box on Slide 2 will show the exact text on the 4th text box of Slide 1.

I set 4 variables for each text box on Slide 1.  and gave 4 states to the text box on Slide 2. Then use "Change the state of the object" as the trigger but not working at all. 

Can anyone correct me or any better triggers to make it happen?

  • Nedim's avatar
    Nedim
    Community Member

    Yolanda,

    I edited your version Test_v1 with triggers as shown on the attached screenshot. Slide 2 (text box) now shows the input that the user enters in Slide 1.

  • the trigger "When the variable changed" is on slide 2, but the variables are changed while you are on slide 1 => trigger does not fire

    you could use on slide 2 th trigger "When the timeline starts on this slide"

  • Hello Jürgen/Nedim, Thank you for your help on the triggers. Always learn something about the triggers~ 

    Hello Nedim, I followed the triggers from your template and re-set mine. Due to the text, I have to seperate each of text boxes from Slide1 in to an indivisual slide. However, the result (the initial Slide2) slide doesn't populate anything. Did I miss any steps?

  • Hello Nedim, Thank you so much! I never thought the color of the text box needed to be filled! Do you know why the transparent one doesn't work?

  • Nedim's avatar
    Nedim
    Community Member

    Hi Yolanda. Honestly, I don't know. Let's call it a bug. This rectangle/state should have at least a border or a color fill so the variable value within the box state is visible.