We’re beavering away on the next version of Typeform. If you’re a v2 Beta Tester, use the tabs below to switch articles. Learn more about v2.


We’re beavering away on the next version of Typeform. If you’re a v2 Beta Tester, use the tabs on the left to switch articles.


Variables allow you to build even more awesome and interactive questions. With functions like Piping, Hidden Fields, Calculator and Payment, you can create smart questionnaires, quizzes, and shopping baskets that will amaze your users.

So let’s show you what you can do with each one!

Variables and Piping

Awesome questions trigger useful answers, so why not employ them to keep on asking more awesome questions? Variables and Piping allow you to use the answers from previous questions to beautifully formulate new questions. Here‘s a full article on how to do it.

Variables EN 01

Variables and Hidden Fields

This combo allows you to better engage with your users by greeting them with their name, to ask them to confirm their email address and much more. Use the data that you know about them to impress them! Just click here to learn more.

Variables EN 02

Variables with our Calcuator

The Price Variable

If you want to create a fantastic shopping basket, donation campaign or collect payments for your services, this will be your best mate. You can add up to the variable price depending on users’ selections: If I want a book = $12, if I want a book and a muffin= $14. You can show the total price on the Payment field. But that’s not all it can do. If you click here you will be shown how flexible this variable can be. Do not miss the templates and examples there!

Inserting Price variable on a Typeform:

Variables EN 03

Setting up the calculator values for each choice in a shopping basket:

Variables EN 04

The Score Variable

Let’s face it: no one likes boring quizzes! Typeform’s score variable and the calculator allow you to give interactive quizzes adding up to the variable score, depending on the user’s response. You can even show them their results on the Thank You screen. Do not miss this quiz template to learn more.

Variables EN 05

Was this article helpful?

Variables help make your typeforms personal, interactive, and useful. They allow you to use the information you collect from people to create smart questionnaires, quizzes, and even shopping baskets.

So what are they? Variables could simply be the answers to questions in a typeform or they could be a score or price calculated based on answers to questions. You can access, calculate, and display variables through the following functions:

Read on to find out how to use each one to make the most of variables:


Piping allows you to reuse answers to previous questions to intelligently formulate new questions and statements. Here‘s a full article on how to ‘pipe’ variables inside your typeforms.

Examples of what you can do with Piping:

  • Use the respondent’s name in questions to give your typeforms more of a human touch
  • Confirm answers to previous questions
  • Display the final price in a shopping basket
  • Show a person’s score in a quiz

Screenshot showing how to add Piping to a question

Hidden Fields

The variables stored in Hidden Fields are based on information you already have about people. So, if you have a customer database you can pass the information from it into a typeform. This can be done either manually or through integration with your CRM or marketing automation software. Click here to find out how Hidden Fields work.

Examples of what you can do with Hidden Fields:

  • Welcome people by name as soon as they open a typeform
  • Pre-populate questions and statements with information you already know about someone (such as their email address, age, or even their shoe size!)
  • Track where people come from when they open a typeform
  • Send a notification to a respondent’s email address upon completion

Screenshot showing Hidden Fields in Typeform


The Calculator feature allows you to compute the ‘Score’ variable, which can be used for quizzes, personality tests, and more. You can pipe the Score variable to show people their results in a statement field, display them in a Thank You screen, or even share them in an email notification.

Examples of what you can do using the the Calculator and Score variable:

  • Add up someone’s score in a quiz
  • Create a personality-style test where you show someone what type of person they are
  • Recommend a product or service to someone based on their preferences
  • Calculate the number of items in an order

Screenshot showing how Calculator is used to add up orders

Payment Field

The Calculator is also used to calculate the ‘Price’ variable when collecting payments from people. For example, if they want a book it adds $12, if they want a book and a muffin it adds $14 to the Price variable. The total price is then sent to the Payment field ready for the customer to check out.

Click here to find out more about using the Payment field and Price variable. You can access some cool templates and examples there, too.

Examples of what your can do using the Payment field and Price variable:

  • Create a shopping basket
  • Set up a donation campaign
  • Collect payments for your services

Use the Calculator to add up the cost of each item in an order in the Price variable…

Screenshot showing how to use Calculator to add up Price variable

…then display the total amount to the customer using Piping.

Screenshot showing how to display total price using Piping