Surveys can be pre-populated in a number of ways such as passing data via the survey
URL link, or by
pre-loading unstarted responses.
When passing data into survey questions, each question will need a question
ACCESS CODE. When you edit a question in the survey designer there is the option to set an
ACCESS CODE:
Pre-filling question answers can be done by appending the survey URL link with the question
ACCESS CODE and the
VALUE you want to pass to the question.
For choice based questions, you can provide the
ACCESS CODE and the choice
NUMERIC VALUE or
TAG VALUE associated with that choice to make a selection.
For text based questions, you can provide the
ACCESS CODE and can pass in an
ENCODED TEXT VALUE.
If you are pre-filling a text question, the text value being passed in needs to be
URL Encoded. URL encoding converts characters into a format that can be transmitted over the Internet. If there are characters such as commas, spaces, equal signs or ampersands in the data you want to pass in - then they need to be converted into codes so they do not get confused with other elements.
For more information on URL encoding, visit the following links:
URL Encoding
Percent-encoding Character Table
The examples below will demonstrate passing values via a URL link to a Single Line Text question and a Single Choice Radio Buttons question.
You can try out these examples yourself by using our sample survey URL:
https://survey.websurveycreator.com/s.aspx?s=1eb1bc96-7a33-4dcb-84c1-173066670a79
After importing a respondent with a spreadsheet and valid matching question access codes, the questions are then pre-filled: