Using Gravity Forms ‘gform_entry_list_column_input_label_only’ PHP filter

The gform_entry_list_column_input_label_only is a Gravity Forms PHP filter that can be used to override the default behavior of only including the input label in the entry list column header.

Usage

A generic example of how to use the filter:

add_filter('gform_entry_list_column_input_label_only', 'your_function_name', 10, 3);

Parameters

  • $input_label_only (bool): Determines if the label should only include the input label.
  • $form (Form Object): The form currently being processed.
  • $field (Field Object): The field currently being processed.

More information

See Gravity Forms Docs: gform_entry_list_column_input_label_only

Examples

Include Product Field Label

This example demonstrates how to include the field label along with the choice label for ‘product’ field types.

add_filter('gform_entry_list_column_input_label_only', function ($input_label_only, $form, $field) {
    return $field->type == 'product' ? false : $input_label_only;
}, 10, 3);

Place this code in the functions.php file of your active theme.