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:Variables from the URL
Add the parameters to the interview link.Interview link
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?
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
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.
