Use dynamic variables

You can use dynamic variables to speak directly to your audience in your Riddle and personalize what they see.

Variables are automatically created for you in every Riddle, and you can use them in text blocks and form fields as pre-filled values.

Variable types

There are 4 types of variables you can use in your Riddle:

  1. Form field variables: Variables created by Riddle audience form entries. These variables store data entered by your audience when taking the quiz.
  2. Block answer variables: Variables created from Riddle content. These variables store answers to previous questions and are created automatically as you create new question blocks.
  3. Data layer variables: Variables created through the Riddle Data Layer. When you set up data layer items, these items are turned into variables you can use throughout your quiz.
  4. Result page variables (Dynamic Fields): Values that only exist once the Riddle is finished, such as the score or the time taken. They are available on the result page only.

Add a form field variable

  1. Create a Riddle and include a form field.
    create riddle with form field
  2. In any subsequent block, go to a title or answer explanation text field, click on the % icon and select a select a form field from the dropdown list.
    select form field variable
  3. The information your audience previously provided will then appear at your chosen position in this block.
    form field variable selected
    form field variable active in riddle

Add a block answer variable

  1. Create a Riddle and include answer content.
  2. In any subsequent block, go to a title or answer explanation text field, click on the % icon and select a select a block answer variable from the dropdown list.
    select block answer variable
  3. The answer your audience previously provided will then appear at your chosen position in this block.
    block answer variable selected
    block answer variable active in riddle

Add a data layer variable

For advanced marketing professionals, combining variables and the Riddle Data Layer is a great way to pass data from external sources into the Riddle, use it as dynamic content, and then pass it back to your data warehouse along with the Riddle data.

  1. Create a Riddle.
  2. In any block, go to a title or answer explanation text field, click on the % icon and select a select a data layer variable from the dropdown list.
    select data layer variable
  3. The variable will then appear at your chosen position in this block.
    data layer variable selected

Add a result page variable

Result page variables show your audience how they did, in your own words. They are listed under Dynamic Fields in the variable picker of a text element on the result page, and they are not offered in question blocks, automated emails or integrations, because their value only exists at the end of the Riddle.

VariableRiddle typesWhat it shows
Time takenQuiz, MinigameHow long your audience needed from the start to the result, as minutes:seconds, e.g. 01:42. If no time was recorded, the variable stays empty.
Score as numberQuizThe points your audience scored
Score as percentageQuizThe score as a percentage of the maximum
Maximum achievable scoreQuizThe highest possible score

Use cases:

  • Show the time in the result text: "You needed 01:42 to finish the quiz. Can you beat that?" with the time taken filled in per visitor.
  • Speed challenges in a minigame: show the solving time under a Sudoku or Minesweeper result, so your audience can compare it with friends.
  1. Open a result page and double click on a text element, or add one with ADD > Text.
  2. Click on the VAR icon in the text toolbar and open the Dynamic Fields tab.
    select a dynamic field on the result page
  3. Select Time taken or, in a quiz, one of the score variables. The variable appears at the cursor position and is replaced with the real value when your audience reaches the result page.
    time taken on the result page

Good to know:

  • Time taken works in existing Riddles too, not only in new ones, and it is the same time your leaderboard uses for its ranking. The leaderboard itself does not change.
  • The variable is only offered in quizzes and minigames. Other Riddle types do not record a completion time.