The datasource question types allows you to create a text response question that suggests answers to respondents as they type. For example, create a question that asks for a respondent’s state of residence, respondents who type a “C” into the box are show the possible answer choices of California, Colorado, or Connecticut. The question links to an external list of possible answer choices and automatically updates anytime your list changes. Use question settings to restrict respondents to answers in your list.
To set up a datasource question:
- Drag and drop a datasource question from the Advanced Questions section of the palette to the canvas.
- Phrase your question in the Question Title and optionally add an Extra Description.
- Enter Datasource URL. This URL should return a JSON encoded dictionary like this one. Respondents will be able to see and choose values of your key value pair.
- Configure your question’s Options settings. See below for details.
- Save your survey.
|Optional||Makes question optional. Uncheck to make it required.|
|Datasource URL||URL to a valid JSON dictionary of answer choices.|
|Error Message||Error text that will display if user are not allowed to enter their own choices and they enter a value not on the datasource list.|
|Default Value||Enter an answer choice to be pre-populated.|
|Allow users to type their own choices||Allows users to enter answers that are not on the datasource list. Uncheck to restrict to your list.|
|Hide suggested options||Hides suggestions from respondents. Unselect to autocomplete suggestions based on what the respondent is typing.|
|Match on sub-string||Suggests all list options which contain the typed letters. So tying an “a” would bring up “Alabama” and “California”.|