How to show text input from one page to the next.

theresa.do1 shared this question 7 years ago
Answered

Forgive the many (and novice questions), but just getting familiar with JustInMind. I'm trying to mock up a simple google home page by bringing in a screen shot and overlaying it. I can create the navigation fine, but how do I bring what was inputted within the text section (ie overlaid search bar) to the next page to show what was searched?

Best Answer
photo

You can use a variable to store the value of the text input. Check out the attached prototype for an example. Here's how to create it:

1. Drag an Input Text Field and a Button onto the Canvas.

2. Create a Variable.

3. With the Button selected, create an "On Click" + "Set Value" event, with the Variable as the target of the "Set Value" action.

4. For the value, click 'calculated'. In the Calculated Expression builder, drag the Input Text Field into the open space in the expression.

5. Create an "On Click" + "Link To" event, and link to another screen.

6. On that screen, create an "On Page Load" + "Set Value" event, and select a Text widget to be the target.

7. For the value, click 'calculated', and drag the Variable into the open space in the expression.

Comments (6)

photo
1

Don't worry, ask whatever you want to, that's why we created this place for. To bring a data from one screen to another you can use variables. Take a look at this video tutorial http://www.justinmind.com/tutorials/m...

photo
1

Thanks for the answer! That video helped!

photo
1

Can i use text from a textarea field (not just a single line but multiple lines) in a variable? I'm simulating a form where a user would enter multi-line comments and want to display those comments in subsequent screens using a variable. Can't seem to get that to work. Other single line text variables work fine.

photo
1

The text area should work as well. Could you send an email with your prototype so we can check what's not working in it?

photo
1

Yeah, you're right. I was not connecting the variable to the textarea field properly, it's working now - thanks for your response.

photo
1

You can use a variable to store the value of the text input. Check out the attached prototype for an example. Here's how to create it:

1. Drag an Input Text Field and a Button onto the Canvas.

2. Create a Variable.

3. With the Button selected, create an "On Click" + "Set Value" event, with the Variable as the target of the "Set Value" action.

4. For the value, click 'calculated'. In the Calculated Expression builder, drag the Input Text Field into the open space in the expression.

5. Create an "On Click" + "Link To" event, and link to another screen.

6. On that screen, create an "On Page Load" + "Set Value" event, and select a Text widget to be the target.

7. For the value, click 'calculated', and drag the Variable into the open space in the expression.