How to pass data from URL to a survey?

Pass data from URL to question title

  1. Navigate to the question that you wish to pass data in.
  2. Insert a variable surrounding by double curly brackets, such as in the format of {{city}}, in the question title.

  3. In the design URL, include a parameter, such as "city=Paris". This allows the question to replace the variable with the parameter value in the URL.

  4. If URL doesn't include the parameter, by default it is replaced by an empty string, unless you added a custom URL Variable, such as "city", under "Custom Variables" and assigned a default value to it.

Note: this feature applies to question titles for all questions except for Text, Image, Text A/B Test, Image A/B Test questions that don't require answers.

Pass data from URL to a choice

  1. Navigate to the choice that you wish to pass data in.
  2. Insert a variable surrounding by double curly brackets, such as in the format of {{todayspick}}, in the choice.

  3. In the design URL, include a parameter, such as "todayspick =Pineapple". This allows the question to replace the variable with the parameter value in the URL.

  4. If URL doesn't include the parameter, by default it is replaced by an empty string, unless you added a custom URL Variable, such as "todayspick", under "Custom Variables" and assigned a default value to it.

Note: this feature applies to choice options in Multiple Choice, Dropdown, Grid - Multiple Choice, and Grid - Dropdown questions.

Pass data from URL as an answer

  1. In the design URL, include a parameter, such as "Q1=Tom%20Smith", where %20 indicates a space character. This allows the survey to pre-enter the answer for a question with the parameter value in the URL. The parameter variable name starts with "Q" (case insensitive) followed by the index number of the question.

  2. If you added a custom URL Variable, such as "Q1" under "Custom Variables" and assigned a default value to it, by default it takes the value as the question's answer. Note: this feature applies to Multiple Choice (Single-select), Dropdown, NPS (discontinued), Star Rating, Slider, Textbox, and Comment Box questions.
You may also like to:
Submit feedback
View all help articles
+ Feedback
Name
Email
Description