How do I add a change event function to an autocomplete that is in a popup editor template. I do not want to use a combobox or dropdownbox because there are too many values, but I want to bind the id value in the data model, not the text field.
<input name="Location"
data-source="locationDataSource"
data-text-field="Combined"
data-value-field="id"
data-filter= "startswith"
data-role="autocomplete"
data-placeholder= "Type the location number..."/>