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

›Advanced Interactions

Installing and Activating RP

  • Activating Axure RP
  • Installing on macOS
  • Installing on Windows

Getting Started

  • Getting Started Video
  • The Axure RP Environment
  • Viewing and Sharing Your Prototypes
  • Keyboard Shortcuts
  • Auto-Saved Backup Files

Working with Widgets

  • Organizing Widgets
  • Widget Groups
  • Styling Widgets
  • Widget Libraries
  • The Grid, Guides, and Snapping

Basic Widgets

  • Buttons, Shapes, & Text
  • Images
  • Hot Spots
  • Lines & Arrows
  • Dynamic Panels
  • Inline Frames
  • Text Fields & Text Areas
  • Droplists
  • List Boxes
  • Checkboxes
  • Radio Buttons
  • Trees
  • Tables
  • Classic Menus
  • Snapshots

Working with Pages

  • Managing Pages
  • Styling Pages

Masters

  • Creating and Using Masters
  • Master Views
  • Raised Events

Introduction to Interactions

  • Events, Cases, and Actions
  • List of Events
  • List of Actions
  • Text Links
  • Style Effects
  • Animations

Advanced Interactions

  • Variables
  • Conditional Logic
  • Math, Functions, and Expressions
  • Selection Groups
  • Move Action Boundaries

The Repeater

  • Repeaters
  • Dynamically Adding Rows
  • Dynamically Deleting Rows
  • Updating Rows
  • Marking Rows
  • Sorting Rows
  • Filtering Rows
  • Pagination

Adaptive Views

  • Adaptive Views

Documenting Your Prototype

  • Page and Widget Notes
  • The Word Specification
  • Printing

Flow Diagrams

  • Flow Diagrams
  • Flow Connectors

Publishing Your Prototype

  • The Prototype Player
  • Customizing the HTML Output
  • Web Fonts and Font Mapping

Team Projects

  • Creating and Sharing Projects
  • Working with Team Projects
  • Team Project History
  • Troubleshooting Team Projects
  • Upgrading Projects to RP 9

Variables

Variables are containers in which you can store text and numbers — referred to as the variable's "value" — for later use. You can display a variable's value on a widget as text, use it in a conditional logic statement, or manipulate it with a bracketed expression.

To see variables in action, check out these tutorials:

  • Pass Text Between Pages
  • Set Dynamic Panel State on Next Page
  • Slider Control

Global Variables

Global variables and their values are accessible from every page in a project, so you can use them to pass information between pages. Go to Project → Global Variables to create and manage your project's global variables.

Setting Global Variable Values

Global variables can start out empty or with a default value. To assign a default value to a global variable, double-click the cell to the right of it, under Default Value in the Project → Global Variables dialog.

You can also dynamically set a global variable's value with the Set Variable Value action in a page or widget interaction.

Tip

You can use global variables to dynamically capture user input from form widgets like text fields and droplists and pass that input between pages.

Accessing Global Variable Values

You can access a global variable's value in condition fields and any actions that include the value of variable or length of variable value value options. These include actions like Set Text, Set Selected/Checked, and Set Selected List Option.

You can also access the values of global variables in bracketed expressions anywhere you see the fx icon. You can type the name of a global variable directly into an expression or select from a list of the project's global variables in the Insert Variable or Function dropdown.

Tip

Use a bracketed expression when you need to alter the value of a global variable in some way before it gets evaluated, such as performing a math function on a numeric value or capitalizing a text value.

Checking Global Variable Values in the Web Browser

While previewing a prototype in the web browser, you can see the current values of its global variables in the the prototype player's Console. This is useful for testing and troubleshooting complex prototypes since you can see the value of each variable at each stage of an interaction.

In the console, you can also reset the variables back to their default values to help with testing.

Local Variables

Local variables and their values are defined and accessed within a single action or condition field. Use a local variable instead of a global variable when you only need to access the stored value once, in a single location.

You can create local variables in the Edit Value dialog, accessible anywhere you see the fx icon.

Accessing Local Variable Values

You can access the value of a local variable in bracketed expressions in the Edit Value dialog that the variable is declared in. You can type the name of the variable directly into an expression or select from a list of local variables in the Insert Variable or Function dropdown.

Tip

You can rename a local variable by clicking its name at the bottom of the Edit Value dialog. All uses of the variable's name in the expressions in this dialog will be updated automatically.

← AnimationsConditional Logic →
  • Global Variables
    • Setting Global Variable Values
    • Accessing Global Variable Values
    • Checking Global Variable Values in the Web Browser
  • Local Variables
    • Accessing Local Variable Values
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.