Using variables and calculations
Create dynamic variables that perform calculations, scores, and conditional outputs across your form.
Variables let you store, transform, and reuse data across your form. They're essential for scoring quizzes, calculating prices, or building personalized follow-up logic.
Creating a variable
- 1Open the Variables dialog from the builder toolbar (the {x} icon).
- 2Click "Add Variable" and give it a descriptive name (e.g., "total_score" or "discount_amount").
- 3Set the variable type: Number, Text, or Boolean.
- 4Define the initial value (defaults to 0 for numbers, empty for text).
Updating variables with logic
Variables are updated through logic rules. When a respondent answers a question, you can configure a rule to increment, set, or calculate a new variable value. For example: "If answer is A, add 10 to total_score."
Using variables in content
Reference variables anywhere in your form copy using the {{var:variable_name}} syntax - the "var:" prefix is required. This works in question titles, descriptions, ending screens, and even logic conditions — enabling truly dynamic forms.
Building a quiz? Quiz mode (Settings → Quiz) checks answers for you against a key respondents never see, and shows each person's score with {{quiz:score}} and {{quiz:percent}}. Variables are for custom calculations - a price, a weighted total - shown with {{var:total_score}}.
Variable names must be unique and can only contain letters, numbers, and underscores. They are case-sensitive.
Was this article helpful?