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 3 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 the user 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.

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