Skip to main content
A variable is a named value that follows the respondent through the interview. You use it to personalize question titles and descriptions, to carry a piece of data you already had before the interview started, and to keep a value collected early available in every block that comes later. Variables also show up in the Variables column of the Responses table.
Context variables require Advanced statistics mode, which you turn on from the settings in the side menu. See Advanced statistics.

Where you manage variables

There are two entry points, and they act on the same list.
  • Campaign settings → Variables tab — the tab next to Survey, Webhook and Quota in the settings modal.
  • Variable manager — the button in the canvas bar, when you’re working on the flow and don’t want to leave it.

Name and origin

Every variable has two things: a name, which is how you refer to it everywhere else, and an origin, which is where its value comes from. There are exactly three origins.
origin
You set the value yourself when you define the variable. Use it for something that’s the same for everyone in this study — a wave number, a market code, a starting score.
origin
The value comes from a parameter in the interview link. Use it when whoever sends the link already knows something about the person: source, list, customer ID.
origin
The value comes from the answer to a question you pick. Use it to keep an answer available for the rest of the interview without asking again.

Syntax

You reference a variable with double curly braces:
When the respondent opens the question, the system replaces the placeholder with the current value of the variable.

Variables from the URL

Add the parameters to the interview link.
Interview link
You can then use them in question titles or descriptions.
Question content
Output seen by the respondent
Parameters in the URL are automatically decoded before display: Computer%20Science becomes Computer Science.

Variables from an answer

A variable whose origin is a question answer takes the value the respondent gave, and keeps it for all the following questions.
Question: What year of study are you in?
A later question can use it in its title:
Title of the following question
Output if the respondent chose Year 2

Overwriting variables

If a variable arrives from the URL and is then set again during the interview, the last assigned value wins.
Overwriting example
From that point on, all titles and descriptions use the new value.
Reusing the same variable name in different places of the interview is allowed, but it overwrites the previous value without warning you. If you need both pieces of data, use two distinct names.

Next steps

Logic and conditions

Show or skip a question, and decide where the respondent goes next.

Scripts

Write a variable from JavaScript with vars.<name>, based on the answers already given.