---
title: "How to add a multi-select search input for drop-down fields"
date: 2026-07-29
author: "Casey Burridge"
link: "https://www.gravitykit.com/docs/gravityview/search/how-to-add-a-multi-select-search-input-for-drop-down-fields/"
---

By default, the GravityView Search Bar offers three input types for a Gravity Forms Drop Down field: **Select**, **Radio**, and **Links**. Each lets visitors search for one value at a time. If you'd like visitors to select several values at once (for example, filtering a directory by two departments at the same time), you can enable the **Select (multiple values)** input with a small code snippet.

**Note:** Multi Select and Checkboxes fields already offer the multi-select search input by default. This snippet is only needed for single-value Drop Down fields.

## Add the code snippet

Add the following snippet to your site. If you're not sure where code like this belongs, see [Where to put code samples](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/).

```
/**
 * Offer the "Select (multiple values)" search input for Drop Down fields
 * in the GravityView Search Bar.
 *
 * @param array $input_types Map of field types to their available search input types.
 *
 * @return array The updated map.
 */
add_filter( 'gravityview/search/input_types', function ( $input_types ) {
	if ( isset( $input_types['select'] ) && ! in_array( 'multiselect', $input_types['select'], true ) ) {
		$input_types['select'][] = 'multiselect';
	}

	return $input_types;
} );
```

## Choose the input type in your View

With the snippet in place, edit your View and open the Search Bar settings for your Drop Down field. The field's **Input Type** setting now includes **Select (multiple values)**. Choose it and save the View.

## How it works

The Search Bar now renders the field as a multi-select input. When a visitor selects more than one value, the View shows entries that match *any* of the selected values. Because a Drop Down field stores a single value per entry, selecting "Support" and "Sales" returns all entries whose value is either one.

## Related

- [Modifying Search Bar inputs](https://www.gravitykit.com/docs/gravityview/advanced/modifying-search-bar-inputs/) — the full developer reference for search input filters
- [Where to put code samples](https://www.gravitykit.com/docs/gravityview/customizing-your-views/where-to-put-code-samples/)