Skip to main content

How to insert variables in the text

Sharon Luria avatar
Written by Sharon Luria
Updated this week

In this article you will find out more about:

How to use variables?

You can insert helpful variables in the title/description of your items.

To view all the variables available in your location (e.g. question, closing screen), type the recall character - @.

This is an example of what you could see when typing @ in a personality quiz result:

Following are a few parameter examples:

Personality quiz result parameters

{result rank #1 title} - displays the title of the result that got the most association points in the quiz

{result rank #1 percent} - displays the % of association points of the result that got the most points compared to all the points allocated to all the results

Learn how you can display multiple results in your personality quiz.

Important note: Please note that e.g. title rank #1 is a variable and refers to the main result of the user, not to the result that is listed as the first one on your list.

Example

If you want to display the 3 top results to all users taking your quiz, you should put this combination into each result's description, no matter the number of result on your list:

{result rank #1 percent} {result rank #1 title}

{result rank #2 percent} {result rank #2 title}

{result rank #3 percent} {result rank #3 title}


It will look like this for a user:


Trivia quiz result parameters

{Number correct} - displays the number of questions that were answered correctly

{Percent correct} - displays the percentage of questions that were answered correctly

{Number of questions} - displays the number of questions in the quiz

How to retrieve answers to questions in follow-up questions?

For example, you could ask the user's name in one question and then refer to the user's name in a follow-up question.


Adding variables to URLs in CTA buttons

You can dynamically add parameters to the URLs used in CTA (Call to Action) buttons on closing screens.

This allows you to send parameters to the configured URL, making it easy to:

  • Direct users to different pages based on their answers for pre-filter content,

  • Pass data to external tools via the URL.

How It Works

When editing a CTA button, you can append variables to the end of the URL as parameters. Variables are inserted using the @ symbol - the same way they’re used in titles and descriptions.

Example

Base URL:

https://example.com/results

With dynamic filters (note: the first link is simplified for demonstration purposes, while the actual link with variables generated for your CTA button will be similar to the second one):

https://example.com/results?category=@selected_category&year=@year

https://example.com/results?category={Please select a category: a-1ee3b0b0}&year={Please select your year of birth: a-257ed82e}

If a user selected Photography and were born in 1990, the final URL will look like:

https://example.com/results?category=Photography&year=1990

This lets you send them to a page tailored to their experience - with filters already applied or prefilled.

URL Encoding

All variable values are automatically URL-encoded, so your links stay valid and functional. For example:

  • A space becomes +

  • A percent sign % becomes %25

  • Other special characters are safely encoded too

So if the category is Graphic Design, the rendered URL becomes:

arduinoCopyEdithttps://example.com/results?category=Graphic+Design
Did this answer your question?