Disable autocomplete in views exposed filter form

Public

Get raw version
php
  1. function yourcustommodule_form_alter(&$form, &$form_state, $form_id) {
  2. if ($form_id == 'views_exposed_form') {
  3. $view = $form_state['view'];
  4. if ($view->name == 'your_view_machine_name' && $view->current_display == 'your_display_machine_name') {
  5. unset($form['your_field_machine_name']['#autocomplete_path']);
  6. }
  7. }
  8. }