gppa_submitted_choice_label

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

Description

Filter the submitted choice label.

Populate Anything shows choice labels instead of values in backend contexts as dynamically populated choice values are frequently non-human-readable values such as IDs, slugs, etc.

Usage

Filter the submitted choice label for all fields with dynamically populated choices.

add_filter( 'gppa_submitted_choice_label', 'my_custom_function' );

Filter the submitted choice label for all fields dynamically populated choices in a specific form.

add_filter( 'gppa_submitted_choice_label_FORMID', 'my_custom_function' );

Filter the submitted choice label for a specific field dynamically populated choices.

add_filter( 'gppa_submitted_choice_label_FORMID_FIELDID', 'my_custom_function' );

Parameters

  • label string

    The submitted choice label.

  • value string

    The submitted choice value.

  • field \GF_Field

    The field object.

  • entry_id int

    The entry ID.

Since

This filter is available since Gravity Forms Populate Anything 2.0.5.