allmighty-autocomplete
allmighty-autocomplete copied to clipboard
On select Customize input value
I have a one to many relationship where a product belongs to a vendor. In my new product form I have a vendor_id which I would like to autocomplete allowing the user to search for a vender name. When that vendor name is selected, instead of the name inserted in the field, I would like the id in the field. Either that or a way to insert the vendor_id into a hidden field. Is there a way to do that with this directive?
did you solve it?