gppa_input_choice

  1. Description
  2. Usage
  3. Parameters
  4. Since
  5. Examples
    1. Add a custom choice template to choices

Description

Modify the current choice that’s being populated into the current field.

Usage

Apply to all fields on all forms.

Could not fetch snippet.

Apply to all fields on a specific form.

add_filter( 'gppa_input_choice_FORMID', 'my_custom_function' );

Apply to a specific field on a specific form.

Could not fetch snippet.

Parameters

  • choice array

    The current choice being populated.

  • field \GF_Field

    The current field being populated.

  • object array

    The current object being populated into the current choice.

  • objects array

    An array of objects being populated as choices into the field.

Since

This filter is available since Gravity Forms Populate Anything 1.0-beta-4.116.

Examples

Add a custom choice template to choices

Add a choice template named image to choices. This pairs well with the gppa_template_rows JavaScript filter.

Could not fetch snippet.
OSZAR »