| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 09:00:12 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_entries_column/
server: cloudflare
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
x-redirect-by: WordPress
fastcgi-cache: HIT
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=pOffrdRKfICdagQ6aacSBUK80UVOhLTpMYoQujpS0cac4YP%2F4vnBIrTT%2BxIGWCMUACvbTb9c2IaqbdVJQYB%2BO%2B0%2BEGXSRHwuffmfTgu2l5XyGhQ%2F"}]}
cf-ray: 9b47a049ce309dfa-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 09:00:12 GMT
content-type: text/html; charset=UTF-8
server: cloudflare
vary: Accept-Encoding
strict-transport-security: max-age=604800
strict-transport-security: max-age=31536000; includeSubDomains
x-content-type-options: nosniff
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-xss-protection: 1; mode=block
x-frame-options: SAMEORIGIN
x-frame-options: SAMEORIGIN
content-security-policy: frame-ancestors 'self';
referrer-policy: no-referrer
referrer-policy: strict-origin-when-cross-origin
link: ; rel="https://api.w.org/"
link: ; rel="alternate"; title="JSON"; type="application/json"
link: ; rel=shortlink
fastcgi-cache: HIT
report-to: {"group":"cf-nel","max_age":604800,"endpoints":[{"url":"https://a.nel.cloudflare.com/report/v4?s=riK9m5Z5haxBv0DSxNszt4ZJ9kbGUI7gRoAj02LLMARLSN1lyaGaAiwxd%2Fvo8Hj7zngMOGXdur1%2Bb79O6rrFZKAqFgsNsSLryGE8LTLaDV7GeuVX"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b47a04f5d669dfa-BLR
gform_entries_column - Gravity Forms Documentation
gform_entries_column
Description
Use this action to inject markup to any non-first column of every entry in the entry list grid.
Usage
add_action( 'gform_entries_column', 'add_icon', 10, 5 );
Parameters
| Parameter | Type | Description |
|---|---|---|
| $form_id | integer | ID of the current form. |
| $field_id | integer | ID of the field that this column applies to. |
| $value | string | Current value that will be displayed in this cell. |
| $entry | Entry Object | Current entry object. |
| $query_string | string | Current page query string with search and pagination state. |
Examples
Append an icon to the column depending on the text being displayed in the cell.
Note: This example assumes that field with ID 5 is NOT placed in the first column on the entry grid. This hook does not fire for the first column in the grid. Look at gform_entries_first_column to add content to the first column.
add_action( 'gform_entries_column', 'add_icon', 10, 5 );
function add_icon( $form_id, $field_id, $value, $entry, $query_string ) {
// Targeting form 190 only.
if ( $form_id != 190 ) {
return;
}
// Targeting field 5 only.
if ( $field_id != 5 ) {
return;
}
if ( $value == 'yes' ) {
echo " <img src='" . GFCommon::get_base_url() . "/images/tick.png' />";
} elseif ( $value == 'no' ) {
echo " <img src='" . GFCommon::get_base_url() . "/images/stop.png' />";
}
}
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?
Source Code
This action hook is located in GFEntryList::leads_page() in entry_list.php.