---
id: gk-gravityview-search-field-choices
title: "Filter - gk/gravityview/search/field/choices"
sidebar_label: "gk/gravityview/search/field/choices"
tags:
  - "2.59.0"
---

# Filter: gk/gravityview/search/field/choices

Filters the choices for a Gravity Forms-backed search field.

Allows integrations to supply choices for field types that don't expose them on `$field-&gt;choices` (e.g., the Gravity Flow Assignee Select field).

## Parameters

| Name | Type | Description |
|------|------|-------------|
| $choices | `array\{value: string, text: string\}[]` | The current choices. |
| $field | `\GF_Field\|null` | The Gravity Forms field, or null for entry-meta types like <code>payment_status</code>. |
| $search_field | `\Search_Field_Gravity_Forms` | The search field instance. |

### Since

- [2.59.0](../../since/2-59-0/)

### Source

Defined in `includes/search/fields/class-search-field-gravity-forms.php` at line 407

