Skip to main content

How to Insert Variables in the Text

Sharon Luria avatar
Written by Sharon Luria
Updated over 2 weeks ago

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

Example

If you want to show the result ranked #1 in the title, but also show the results that were ranked #2 and #3 in the description, you should use the following parameters:

@Result rank #1 title (in the title below)

@Result rank #2 percent @Result rank #2 title (in the description below)

@Result rank #3 percent @Result rank #3 title (in the description below)


It will look like this for a user:

Knowledge 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 it in a follow-up question.


Adding variables to URLs in CTA buttons (advanced)

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?