Skip to main content

Custom Parameter Pre-filled Answers

Important Note

This feature is a paid feature in the Business Version. If you haven't upgraded yet, please upgrade before using it.

Introduction

By adding parameters to the survey link, you can pre-fill answers for certain questions in the survey. This can be combined with custom logic to create more flexible surveys.

Usage

Simple example:

https://wesurvey.com/s2/1000000/abcd?Q1=A1&Q2=A1,A2

Q1 represents the first question, A1 represents the first option (in the example above, it means selecting the first option for the first question, and selecting the first and second options for the second question)

Each question's answer is a parameter, multiple questions are connected with &, multiple selected options for one question are connected with ,

Answer formats for different question types are shown in the table below

Question TypeCustom ParameterDescription
Single Choice, Multiple Choice, Dropdown?Q1=A1&Q2=A1,A2Answer indicates which option number
Single Line Text, Multiple Line Text?Q1=helloAnswer is the text content
Rating Scale?Q1=4Answer is the rating value
Sorting?Q1=A1,A3,A2Answer is the sorted options
Matrix Single Choice, Matrix Multiple Choice?Q1=S1A1,S2A2Answer indicates which sub-question and which option
Matrix Rating Scale?Q1=4,3,2Answer is the rating values for different sub-questions
Date Time (Year)?Q1=2020
Date Time (Year-Month)?Q1=2020-10
Date Time (Year-Month-Day)?Q1=2020-10-24
Date Time (Hour:Minute)?Q1=10:24
Date Time (Year-Month-Day Hour:Minute)?Q1=2020-10-24 10:24Note: space needs to be encoded using encodeURIComponent
Note

For text question answers, if there are special URL characters, please encode them using encodeURIComponent before passing

Use Cases

Pre-filling Answers

When survey distributors already have information like users' names, gender, etc., they can automatically fill in the answers for respondents, so respondents don't need to answer manually

  • First question Q1 asks for name
  • Second question Q2 asks for gender (A1 for male, A2 for female)
https://wesurvey.com/s2/1000000/abcd?Q1=Mike&Q2=A1

This will automatically fill in the name as Mike and gender as male

Combining with Custom Logic

If your survey requires different questions based on gender, you can set up the following custom logic

if Q2A1 then show Q3~5
if Q2A2 then show Q6~8

When users enter through the above link https://wesurvey.com/s2/1000000/abcd?Q1=Mike&Q2=A1, they will only see questions 3 to 5, and won't see questions 6 to 8.

For more details about custom logic, see here