| CARVIEW |
Select Language
HTTP/2 301
date: Sat, 27 Dec 2025 06:46:03 GMT
content-type: text/html; charset=UTF-8
location: https://docs.gravityforms.com/gform_print_entry_content/
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: MISS
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=f8EP%2F5WmDbiSg71u%2FEQc%2BdpH7SuoZJVHFt%2BcufNSFlh33siwIV%2FA2ahi61th42tKX%2BnYZZ%2F1KRr1LItKF1%2BKe9e6QL46ACPS5Pl0TQeKe1I5NRmy"}]}
cf-ray: 9b46dbca9ddbcb77-BLR
HTTP/2 200
date: Sat, 27 Dec 2025 06:46:04 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=x4t4yPijtyDM9cTp7ZKsfbngcYyznJv9xFe5zHprJIozYqA%2F9SM0LJIFjp8EQgOKQmwu1uWgYXSvbscusMuil8TKBzzCgfgmfrJ0SL%2Ftk2NbcOv7"}]}
cf-cache-status: DYNAMIC
nel: {"report_to":"cf-nel","success_fraction":0.0,"max_age":604800}
content-encoding: gzip
cf-ray: 9b46dbd28f15cb77-BLR
gform_print_entry_content - Gravity Forms Documentation
gform_print_entry_content
Description
Runs when entries are being displayed and allows a custom display to be used for the entry.
Usage
add_action( 'gform_print_entry_content', 'my_function', 10, 3 );
Parameters
- $form Form ObjectThe current form.
- $entry Entry Object
The current entry.
- $entry_ids array
The IDs of the entries being displayed.
Examples
Example 1
add_action( 'gform_print_entry_content', 'gform_default_entry_content', 10, 3 );
function gform_default_entry_content( $form, $entry, $entry_ids ) {
$page_break = rgget( 'page_break' ) ? 'print-page-break' : false;
// Separate each entry inside a form element so radio buttons don't get treated as a single group across multiple entries.
echo '<form>';
GFEntryDetail::lead_detail_grid( $form, $entry );
echo '</form>';
if ( rgget( 'notes' ) ) {
$notes = GFFormsModel::get_lead_notes( $entry['id'] );
if ( ! empty( $notes ) ) {
GFEntryDetail::notes_grid( $notes, false );
}
}
// Output entry divider/page break.
if ( array_search( $entry['id'], $entry_ids ) < count( $entry_ids ) - 1 ) {
echo '<div class="print-hr ' . $page_break . '"></div>';
}
}
Example 2
// Prevent the default content being output.
add_action( 'gform_print_entry_content', function() {
remove_action( 'gform_print_entry_content', 'gform_default_entry_content', 10 );
}, 1 );
// Bind our custom entry content function.
add_action( 'gform_print_entry_content', 'my_print_entry_content', 10, 3 );
function my_print_entry_content( $form, $entry, $entry_ids ) {
GFEntryDetail::lead_detail_grid( $form, $entry );
}
Placement
This code should be placed in the functions.php file of your active theme.
Since
The filter was added in Gravity Forms version 1.9.14.16.
Source Code
This action hook is located in print-entry.php.