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 {{variable_name}} syntax. This works in question titles, descriptions, ending screens, and even logic conditions — enabling truly dynamic forms.
Variables are perfect for quiz scoring. Create a "score" variable, add points in each question's logic, then display the final score on the Ending screen with {{score}}.
Variable names must be unique and can only contain letters, numbers, and underscores. They are case-sensitive.
Was this article helpful?