How can I customise my surveys using variables?

For each type of variable, you have multiple possibilities to refine precisely which elements to use.

Variables are customisation elements that you can integrate when: 

  • Editing a campaign.
  • Setting up your actions.
  • Preparing to deploy your surveys.

Variables can be easily inserted in several places: 

  • In the label of your questions and also in elements such as "rich content" in order to customise them.
  • In Actions to "notify by URL" and "redirect".
  • In your email and sms templates to customise content according to the recipient.
  • Directly in the name of your report during an export.

For each type of variable, you have multiple possibilities to refine precisely which elements to use according to several contexts.


How to insert a variable?

To insert a variable, use the following structure:


You also have the possibility to simply insert a hash: # it will display all the available variables.

Automatically the list of variables appears. You can navigate by scrolling down the menu.

Summary table

To clarify where and when to use each variable, here is a table listing all the possibilities:

Click here to download it or click on the image.


Example N°1: Customise the title of a question according to the respondent

You want to add automatically your respondent's first name directly in the title of the question.

To do this, create a question or edit an existing question in your survey.

Then fill in the corresponding variable where you want it to appear. In our case for the first name we insert the code : [#dt.first_name]

The list of variables is available in the summary table presented above.

You can also insert a hash "#" to display the variable selector. You are free to choose the method that suits you best.

Once you have found the variable, click on it to insert it into your question.

We find the code as we entered it manually: [#dt.first_name]

Once your campaign is deployed, the variable [#dt.first_name] will be replaced by the value to which it refers, in that case, the respondent will see instead his own first name.

Operation completed.


Example #2: Customise the name of an export of your answers

When you are in the report part of the menu, simply click on the report you want to customise.
Here we have chosen the Design Concept Report.

Then scroll down the page in order to find the button Export answers. It will be under your answers table.

Click on the arrow on the Export answers button.

Then click on "Configure export".

In the first field dedicated to the file name, you can add variables.

For example we can add time variables next to the name of the report.

The goal is to more easily identify each export thanks to the time variables (minute, hour, day, month, year or timestamp) inserted in the files name.

To display the menu, simply enter a # (hash) in the File name field. Then click to choose the item you are interested in.

Once the variables have been chosen and the name filled in (here we use: "ANSWERS-EXPORT"),

You will get this: [#month][#date] ANSWERS-EXPORT

The name and date being variables, they will be automatically adjusted at the time of export!


Example #3: Customise a question based on the answer to a previous question

We will retrieve the code of our reference question in order to mention it in another question.

Note: The code must be used within the same survey and refer to a question on a previous page, which means the respondent must have validated an answer in order to use it.

To find the code of your question, go to your campaign and edit the desired question.

The code is indicated below the selected element type, here Checkbox list with the code a3pl.

Go to another page after this question page. 

In the following question we would like to show the label of the answer.

We use the type code [#ans.{code}].
{code} is to be replaced by the code of your reference question.

Example: Label of the answer: [#ans.{code}] gives us [#ans.a3pl] 

Register once the code has been configured.

If we answer the survey, and we choose to answer "By the sea" to the first question "Where would you do like to spend your holidays?

In the next question (on the next page), we do reuse the label of the answer to the previous question to ask a new question.

This allows you to finely customise your questions based on your respondents' answers.


Overview of other customisable elements

The way customisation works is strictly identical to the examples used above.

  • In a rich content
  • In an email template
  • In an SMS template

The principle is the same regardless of where a variable is added.

You are ready to customise your surveys!


Want to try? Click here