Custom autocomplete form and autosubmit

30/07/2018


I’ve added an autocomplete function for my views_exposed_form (a text input) using this tutorial and it works (https://www.linkedin.com/pulse/implementing-autocomplete-drupal-8-custom-callbacks-waliullah-khan).

I’d like to add a “submit on click” behaviour, so when I click on a value of the autocomplete it changes the value of the input and then submit the form.

How should I do this?

قالب وردپرس