gpnf_display_value

  1. Description
  2. Usage
  3. Parameters
  4. Example
    1. Hide Price in Nested Form Field Display Value for Drop Down Product Fields
    2. Display a preview of an uploaded image
  5. Since

Description

Filter the value to be displayed in the Nested Form entries view (per field).

Usage

Apply to all forms and fields.

add_filter( 'gpnf_display_value', 'my_custom_function' );

Apply to all fields of a specific form.

add_filter( 'gpnf_display_value_FORMID', 'my_custom_function' );

Apply to a specific form and field.

add_filter( 'gpnf_display_value_FORMID_FIELDID', 'my_custom_function' );

Apply to all fields of a specific input type for all forms.

add_filter( 'gpnf_INPUTTYPE_display_value', 'my_custom_function' );

Apply to all fields of a specific input type for a specific form.

add_filter( 'gpnf_INPUTTYPE_display_value_FORMID', 'my_custom_function' );

Parameters

  • value mixed

    The field value to be displayed.

  • field GF_Field

    The current field object.

  • form array

    The current form.

  • entry array

    The current entry.

Example

Hide Price in Nested Form Field Display Value for Drop Down Product Fields

View Snippet

Display a preview of an uploaded image

View Snippet

Since

This filter is available since Gravity Forms Nested Forms 1.0.