{hero}

autocomplete

Since: Editor 2.4

Autocomplete text input.
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

The autocomplete field type in Editor provides a regular text input element to allow freeform text input, but also shows a list of values that can be entered below the input. These can be selected by the end user to complete the value they are entering, allowing faster data entry for repetitive data. The list of options is automatically filtered as the end user types into the input.

The options shown below the input can be static (e.g. similar to a select), or for larger data sets can be populated by Ajax (see the ajax option below). The options are populated using the same methods as select, datatable, and others - e.g.: field().update(), the options property for the field, or the options object of the JSON loaded into the DataTable.

It is important to keep in mind that the autocomplete field does allow text entry. If a restriction on the values entered is needed, either use select, autocomplete (or similar), or a validator at the server-side.