Axure Docs
  • Axure RP Reference
  • Axure RP Tutorials
  • Axure Cloud Reference
  • Axure Support
  • Download

›The Basics

The Basics

  • Interactive Button
  • Hiding and Showing Widgets
  • Pass Text to Next Page
  • Anchor Link
  • Embedding Media
  • Full Width Image or Banner
  • Scrolling Region
  • Rotating Carousel / Slideshow
  • Navigation Menu
  • Tooltips
  • Tab Menu
  • Accordion Menu
  • Drag and Drop

Complex Interactions

  • Account Login
  • Auto Tab Fields
  • Blinking Text
  • Dynamically Set Droplist Options
  • Set Text with Droplist
  • Required Fields
  • Scroll Activated Sticky Header
  • Set Dynamic Panel State on Next Page
  • Slider Control
  • Terms and Conditions
  • Timer

Mobile Patterns

  • Swiping Slideshow
  • Toggle Switch

Pass Text to Next Page Tutorial

In this tutorial, you'll learn how to pass user-provided text from one page to another using global variables.


Note

Click here to download the completed RP file for this tutorial.

1. Widget and Page Setup

  1. Open a new RP file and open Page 1 on the canvas.

  2. Drag a text field widget and a button widget onto the canvas from the Libraries pane.

  1. Add a second page to the project and open it on the canvas.

  2. Drag a rectangle widget onto the canvas.

2. Create a Global Variable to Store the User's Input

  1. In the top menu, go to Project → Global Variables.

  2. In the Global Variables dialog, click Add to add a new variable. Name it TextInputVar.

  3. Click OK to close the dialog.

3. Capture the User's Input and Go to the Next Page

Set the Variable's Value to the Text Field's Text

  1. Open Page 1 on the canvas and select the button widget.

  2. Click New Interaction in the Interactions pane.

  3. Select the Click or Tap event in the list that appears, and then select the Set Variable Value action.

  4. Select the TextInputVar variable in the Target dropdown.

  5. In the Set To dropdown, select text on widget. Then select the text field in the Widget dropdown below.

  6. Click OK to save the action.

Open Link to Page 2

  1. With the button widget still selected, click the Insert Action icon at the bottom of the Click or Tap block, and select the Open Link action in the list that appears.

  2. Select Page 2 in the Link To dropdown and click OK to save the action.

4. Display the User's Input on Page 2

  1. Open Page 2 on the canvas and click New Interaction in the Interactions pane.

  2. Select the Page Loaded event in the list that appears, and then select the Set Text action.

  3. Select the rectangle widget in the Target dropdown.

  4. In the Set To field, select value of variable.

    The TextInputVar variable should be automatically selected in the Variable field.

  5. Click OK to save the action.

5. Preview the Interaction

  1. Preview Page 1 and enter some text in the text field.

  2. Click the button to navigate to Page 2. The text you entered in the text field should be displayed on the rectangle widget.

← Hiding and Showing WidgetsAnchor Link →
  • 1. Widget and Page Setup
  • 2. Create a Global Variable to Store the User's Input
  • 3. Capture the User's Input and Go to the Next Page
    • Set the Variable's Value to the Text Field's Text
    • Open Link to Page 2
  • 4. Display the User's Input on Page 2
  • 5. Preview the Interaction
Axure Docs
Stay Connected

Sign up to receive Axure tutorials and news. You can unsubscribe at any time.

Axure
TourEnterpriseCompanyDownloadPurchase
Legal
Customer AgreementPrivacy PolicyGDPRSecurityPatents
Resources
BlogForumLicense PortalAxure Cloud
Support
Learn and SupportGetting StartedReferenceWidget LibrariesAxure RP 8 Documentation and Tutorials
Copyright © 2002–2021 Axure Software Solutions, Inc. All rights reserved. Axure® is a registered trademark of Axure Software Solutions, Inc.