I have a form with a text_field in my app where I input the name of a book. The book already exists in my database. How can I submit the ID of the book in the form instead of the name?
I should mention that I don’t want to use a collection select here, because I want this to eventually be an auto-complete field.
You should handle this logic with your autoselect.
You’re autocomplete json:
This will do what you want. You’ll still need to implement server logic to add new books that don’t yet exist.