/
/
Spiceform
PricingLog in
Help CenterBuilding FormsUsing variables and calculations
Building Forms5 min read

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

  1. 1Open the Variables dialog from the builder toolbar (the {x} icon).
  2. 2Click "Add Variable" and give it a descriptive name (e.g., "total_score" or "discount_amount").
  3. 3Set the variable type: Number, Text, or Boolean.
  4. 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.

Pro tip

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}}.

Important

Variable names must be unique and can only contain letters, numbers, and underscores. They are case-sensitive.

Was this article helpful?

Back to Help Center

Related Articles

All field types explained

A reference for every element: Short Text, Long Text, Multiple Choice, Rating, NPS, File Upload, and more.

8 min read

Adding logic jumps and conditional branching

Route respondents to different questions based on their previous answers using the Logic sidebar.

6 min read

Customizing the Welcome & Ending screens

Configure titles, descriptions, button text, media, and redirect URLs for your form endpoints.

3 min read

Multi-language forms and translations

Translate your form into multiple languages using AI-powered or manual translations.

4 min read

Can't find what you need?

Spiceform

Build AI-powered forms in seconds.

Product

  • Pricing

Company

  • About
  • Careers

Support

  • Help Center
  • Contact
  • Privacy
  • Terms
© 2026 Spiceform. All rights reserved.