Enable the Autocomplete Function
Autocomplete is a word completion feature that displays predictive text based on the entered characters and allows respondents to fill a survey field after they enter only a few characters. This example demonstrates and describes how to add this feature to your survey. Start typing into the input field to see autocomplete suggestions.
The autocomplete functionality is built upon a third-party EasyAutocomplete jQuery plugin. Reference the plugin's script and style sheet on your page. You should also reference a script that integrates the SurveyJS Form Library with third-party libraries (
surveyjs-widgets.js). Open the HTML tab and copy the links from there.
To create a survey question with enabled autocomplete, configure a regular Text question and then specify a
choices array for it. Populate the array with autocomplete suggestions. This configuration activates the autocomplete functionality automatically.