Signup

Create respondent groups with Text variables

Text variables are a flexible tool for creating respondent groups that you can show in your typeform or save to use later on. In this guide, we’ll use Text variables to put respondents in one of a few categories, which will be useful for reaching out to different groups of people in the future.

Here’s what you’ll need:

1. First, open the typeform you’ll use from your Workspace, or create a new one.

2. In this example, we’ll add a Multiple Choice question about different client business sizes. Respondents will pick the answer that matches how large their business is, and we’ll link each answer to a different variable value later on.

textuse1.png

3. Now, head over to the Logic tab on the right, open Personalize with data and select Variables:

Screenshot_2023-01-04_at_09.19.59.png

The variables menu is preloaded with default variables, but we’ll add our own by clicking +Add variable. Name the new variable “clientsize” and choose the Text variable option:

textuse2.png

You don’t have to give this variable a base value, since respondents’ answers will determine its value later on. Click Save.

4. Go back to the Logic tab and click Branching and calculations.

Find the question we created about client business size:

textuse3.png

Then, click Add logic to create a series of rules in which each answer choice replaces the value of your “clientsize” variable.

textuse4.png

Here’s what one of those rules might look like. You’ll need one for each answer in the Multiple Choice question:

textuse5.png

Hit Save once you’re finished.

5. Finish designing your typeform questions and logic. Once you’re ready to send it off into the world, click the Publish button and let the responses roll in!

6. After you’ve started to collect answers, go to the Results panel of your typeform and click Responses. This will show a summary of all of your responses:

textuse6.png

Use the checkboxes to select the responses you’d like to export. Then, click Download at the bottom of the screen.

textuse7.png

When you open your downloaded report, the values for your “clientsize” variable will show up as a separate field, or column.

textuse8.png

You can now filter on these values to view information about separate groups of respondents (for example, the emails of all clients with a large business size).

HC_BobRoss_ilu_cropped.png
Tip! You can also pass this information on to other typeforms as a Hidden Field. Click here for some helpful pointers.

Setting up text variables makes it extra-easy to send future typeforms or email campaigns to different groups. Nice job, past self!

Want more ideas on how to use Typeform to connect with new contacts? Check out this guide to using personality quizzes for lead generation!

Tap into our community knowledge