gpi_selected_values

  1. Description
  2. Usage
  3. Parameters
  4. Since

Description

Filter the selected values for the current choice-based field.

Usage

Apply to all fields on all forms.

add_filter( 'gpi_selected_values', 'my_custom_function' );

Apply to all fields on a specific form.

add_filter( 'gpi_selected_values_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

add_filter( 'gpi_selected_values_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • selected_values array

    Selected values for the current field.

  • field GF_Field

    The current field.

Since

This filter is available since Gravity Forms Inventory 1.0-beta-1.0.