[SOLVED][Drupal Views] Removing Field from Views Exposed Form Filter

| | 1 min read

A Drupal user wanted to know how to remove a field from a Views Exposed Form Filter in their Drupal filter. If you are faced with the same question with a View in your Drupal site then read on to know the solution.

Follow the steps below

  • Firstly write a hook_form_alter in a custom module
  • Next try the following piece of code
    $form['your_field_value']['#type'] = 'hidden';
  • You could also use
    $form['your_field_value']['#access'] = 'FALSE'

Hope that helps.

The easiest way to solve a Drupal issue is to hand it to the Drupal experts. We can provide a wide range of Drupal services to help you maintain and manage your Drupal websites. Get in touch with us to know more.