gravityflow_inbox_field_value

Description

The gravityflow_inbox_field_value filter allows customization of field/column values within the inbox list view. It is similar in concept to gform_entries_field_value which gets applied in many other locations.

Parameters

ParameterTypeDetails
$value
StringThe current value to display
$form_idIntegerThe current form ID.
$field_idIntegerThe current field ID.
$entryEntryThe current entry array.

Note: This filter is run on both initial page load and via AJAX calls to refresh the inbox entries list. This means that you will receive different results if evaluating via WordPress functions like current_user_can to check user role or get_the_ID for page context. Checking against the $args[‘detail_base_url’] value may be preferred depending on use case.

Examples

Capitalize a specific form/field value in the inbox

add_filter( 'gravityflow_inbox_field_value', 'jo_inbox_capitalize_example', 10, 4 );
function jo_inbox_capitalize_example( $value, $form_id, $field_id, $entry) {
   if ( $form_id = '5' && $field_id == '27') {
      return strtoupper( $value );
   }
   return $value;
}

Placement

This code can be used in the functions.php file of the active theme, a custom functions plugin, a custom add-on, or with a code snippets plugin.

See also the PHP section in this article: Where Do I Put This Code?