Skip to main content
All CollectionsQuizzesBuilding Questions
Using Variables to Display Quiz Answers in Quiz Content
Using Variables to Display Quiz Answers in Quiz Content

#quiz #variables

Mark Baek avatar
Written by Mark Baek
Updated over a week ago

Variables in quizzes will allow you to insert someone's previous answers into any text content in the quiz, such as text, buttons and more.

πŸ’‘ What you'll learn


πŸ’‘ Prerequisites

Variables are available on Octane Plus & Enterprise plans.


How to add a variable

To add a variable to text content in the quiz, you just have to type in "@" and a list of questions you can insert an answer from will appear.

Variables can be added to:

  • Page titles

  • Page subtitles

  • Custom text

    • Including Title, Heading, Subheading, Body & Caption text types. For Rich Text, variables need to be added manually using the syntax described here.

  • Answer labels

Variables can only insert an answer if the question it references has been responded to. If a question comes after the one you're inserting a variable into, it won't be visible as an option when typing in "@".

This can be adjusted by reordering questions so that questions you'd like to use variables for come before the page the variable is being added to.

Advanced variable tips

Variables also have a manually typed structure that you can use.

  • @[Add any text you'd like here](Question ID)

For example, the following text would create a variable for a first name question but with a simplified variable name (which will usually be the full question text):

  • @[First Name](4b5f8d358e53988f68a58a46faba6b893a8581ae)

This method is needed to add a variable to any rich text field. You can find a page's question ID when editing a question in the left menu.

Did this answer your question?