Drupal 8, what is the ajax event for auto complete dropdown? i have created form alter, there i am altering my form field that is auto complete field, so now what is the ajax event for this auto complete drop down.

change, select, keyup all are not working for this.

1 Answer 1


use autocompleteclose event.

#ajax' = array(
  'callback' =>'get_user_details',
  'event' => 'autocompleteclose',

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.