You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created app/views/records/edit_fields/_creator.html.erb as the following.
<% name_authorities = Hyrax::NameAuthorities.new %><%=
f.input key,
as: :multi_value,
input_html: {
class: 'form-control',
data: { 'autocomplete-url' => "/authorities/search/loc/names",
'autocomplete' => key }
} ,
required: f.object.required?(key) %><!-- comment out this line to make this form work properly?? --><%=f.inputkey,collection: name_authorities.select_active_options,label: false%>
Autocomplete works as I expected. The problem is that the value I entered into the creator field is not saved if the last line of this template exists. When I commented out the line, the values were saved successfully. Is it a bug, or am I missing something else?
The text was updated successfully, but these errors were encountered:
I'm trying to enable autocomplete in a creator field on my berlin2018 VM.
https://github.com/samvera/hyrax/wiki/Autocomplete-in-Hyrax
I created app/views/records/edit_fields/_creator.html.erb as the following.
Autocomplete works as I expected. The problem is that the value I entered into the creator field is not saved if the last line of this template exists. When I commented out the line, the values were saved successfully. Is it a bug, or am I missing something else?
The text was updated successfully, but these errors were encountered: