You've got a Work
in Hyrax and it has a Creator
field. Wouldn't it be nice to have autocomplete on that form
with a controlled vocabulary? Hyrax has this functionality, but you need to set some things up first.
The most basic way a field is associated with a particular autocomplete data source is with a data attribute on the element. The data-autocomplete-url
attribute stores a path to the data source. To add one to an existing field create a partial for the field in app/views/records/edit_fields/
.
In the partial, specify the data source: