Description
Use this action hook to add extra text to the Entry detail page after the entry details are displayed and before Notes (if visible).
Usage
add_action( 'gform_entry_detail', 'add_to_details', 10, 2 );
Parameters
- $form Form Object
The form from which the entry value was submitted.
-
$entry Entry Object
The current entry.
Examples
This example displays the listed text on all entries for form id 31 when viewing the Entry details.
add_action( 'gform_entry_detail', 'add_to_details', 10, 2 ); function add_to_details( $form, $entry ) { if ( $form['id'] == 31 ) { echo '<div>This hook is used to add additional information to the details page for an entry.</div>'; } }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFEntryDetail::lead_detail_page() in entry_detail.php.