01fe20bec001 said about 1 year ago on Autocomplete with StimulusJS :
hi dave,
thank you for the tutorial,
want a autocomplete input a value to a form without any relation
not able to figure it out, if you please suggest
below is my form partial
<%= simple_form_for [patient, patient_test], html: { class: "form patient-test" } do |f| %>
  <%= form_error_notification(patient_test) %>
  <%= f.input :testname, html5: true, input_html: { autofocus: true } %>
  <%= link_to "Cancel", patient_path(patient), class: "btn btn--light" %>
  <%= f.submit class: "btn btn--secondary" %>
<% end %>
want to get test list for testname form Test table which does not have any relation with patient or patient_test (only patient has many patient_test, patient_test belongs to patient )
thank you