We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Setting Fields on autocomplete in angularjs

Thread ID:





119972 Aug 19,2015 05:14 PM UTC Aug 20,2015 12:13 PM UTC JavaScript 1
Tags: ejAutoCompleteTextBox
Garwin Pryce
Asked On August 19, 2015 05:14 PM UTC


I am trying to set the fields that autocomplete should search through in the data source. The data source looks like this:

[{ name: "Peter", Address: "34 Driving Drive"},
 {name: "Mary", Address: "2 Walking Drive"}]

and my element looks like this:

  <input type="text" class="ejinputtext form-control" ej-autocomplete e-datasource="customerList" e-mincharacter="3" e-fields='{key:"name", text:"name"}' />

This doesn't work thou, am I doing it correctly?

Harikrishnan P [Syncfusion]
Replied On August 20, 2015 12:13 PM UTC

Hi Garwin,

Thanks for using Syncfusion products.

While specifying the values for the attributes of “fields” API, you need to specify as shown below,

<input type="text" ej-autocomplete  e-datasource="dataList" e-fields-key="name" e-fields-text="name"  />

Based on your code we have showcased an example sample in the following link, please check it.


You can refer the following link to know more about the Angular support in our JS components


Also you can refer the angular samples of all components from the following location


You can refer the getting started and API reference of all components from the following link

Please let us know if you have further queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon