This tutorial demonstrates on how to implement type ahead feature in an Adaptive Form. Below samples will guide you on how to implement Autocomplete.
The Autocomplete widgets provide suggestions while you type into the field. Here the suggestions are tags for the country and the calling codes.
The below sample assumes that you have a text field with Element Name as texbox1, the script needs to be placed on field initialize. I have used jQuery UI ‘Autocomplete’ to implement the functionality. You may refer to the API doc for more details.

Sample 1:
You have a small List of elements and the elements are not meant to be updated frequently. Let’s take an example of a few countries in an array. This Array of strings would be used as a source to the Jquery autocomplete. Here is a simple script for the hard-coded list.
var values=[“Afghanistan”, “Albania”, “Algeria”, “Andorra”, “Angola”, “Anguilla”, “Argentina”, “Armenia”, “A ruba”, “Australia”, “Austria”, “Azerbaijan”]; $(“.textbox1 input”).autocomplete( { minLength: 1, source: values, delay: 0 }
);
Sample 2:
You want to call a service which would return the elements to be displayed in JSON data. Here we are making an AJAX call and firing the Jquery Autocomplete on success event.
$.ajax( {
url: "https://restcountries.eu/rest/v2/all", dataType: "json", success: function (data) {
var vals=data.map(function(item) {
return {
label: item.name +'(calling code-' + '+' + item.callingCodes +')', value: item.name
}
;
}
);