Back to Class 5
Using the EntryText Variable

To create a text entry interaction that uses the EntryText variable, first drag an interaction icon to the flowline.

Double-click the icon to open it.
Create the text needed to elicit the user's response:

Drag a display icon to the right of the interaction icon.
This will open the Response Type dialog box.
Choose text entry.

Click the Response tab at the bottom, and select Exit Interaction from the Branch menu.
Select Don't Erase from the Erase menu.

Name the display icon: *
The asterick is a wildcard and indicates that any text a user enters should be accepted.

Restart the piece and pause it to align the text entry field in the proper position.


Now you will create the text that a user sees after typing their name.
Hold the shift key down and double click the * display icon so that the previous text, created in the text entry field, is shown.

Type: Welcome,


Now you will embed the EntryText variable in the text.


Open the variable window by choosing Window>Variables.
Windows: Ctrl+Shift+V Mac: Command+Shift+V

The variable window will be displayed.

Choose the Interaction category

Select the EntryText variable and click paste.
Click Done to close the window.

This is how the text will look in the display icon.
When you switch to the pointer, the variable is not displayed. What is displayed is the current entry text. In this case no text has been entered.

Restart the piece and type your name.

Press enter and the welcome text should show the name you typed.

Back to Top