Set Variable.

Variables are extremely useful for creating dynamic questions and options.

Variables have a key and a value.

Variable values can be piped into your questions & options using {{ variable:key }}

Simple Example

If in the USA, it's called a 'vacation', but in Australia and UK, it's called a 'holiday', you could set a variable with a key for 'country' in your logic and a value for 'vacation' if they're tagged as USA and 'holiday' if they're tagged as AUS or UK.

Logic Editor

Question Editor

In your question, you can then input {{ variable:country }} wherever needed to inject the correct word into your question

Question Preview

Here's what USA respondents see:

Here's what AUS/UK respondents see:

Advanced Example

Above is a simple example but for the bold, you can go as complex as you like. For example, you could have dynamic options (i.e. choices or statements), not just dynamic questions.

Let's say you want to show different internet plan offers at Q2 based on their most preferred internet plan price & speed at Q1.

Respondent 1A

Q1: Most Preferred Internet Plan: Price & Speed

Q1 Preview - if respondent selects 800 Mbps - $50/month at Q1, they are assigned 3 variables:

  1. plan_speed = 800 Mbps
  2. plan_price = 50
  3. price_plus_10 = 60

Note: Logic is only visible in Preview mode. Respondents will not see logic in live surveys.

Q1 Logic Editor - in your logic editor, each internet plan (6 speed tiers) is assigned 3 variables.

Q2: Competing Internet Plan Offers

Q2 Editor - in your question editor, input {{ variable:plan_speed }}, {{ variable:plan_price }}, and {{ variable:price_plus_10 }} wherever needed in your question or options.

Q2 Preview - in Q2, respondent 1A sees not only the same 800 Mbps plan_speed (variable 1) and $50/month plan_price (variable 2) that they selected at Q1 but also the price_plus_10 value of $60 (variable 3) in the competing offers at Q2.   

Respondent 2B (Preview Only)

Q1: Most Preferred Internet Plan: Price & Speed - likewise respondent 2B selects 3Gbps speed with $100/month price at Q1 and gets assigned 3 variables:

  1. plan_speed = 3 Gbps
  2. plan_price = 100
  3. price_plus_10 = 110

Q2: Competing Internet Plan Offers - so sees the corresponding speed (3 Gbps), price ($100/month), & price+10 ($110/month) variables at Q2.

Congratulations! 🎉

You've just created a dynamic question with dynamic options using 'set variable' in your logic editor and {{ variable:key }} in your question editor.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.