Using Gravity Forms ‘gform_entry_detail_sidebar_after’ PHP action

The gform_entry_detail_sidebar_after action hook allows you to add extra text or boxes after the last box in the Entry detail sidebar in Gravity Forms.

Usage

add_action('gform_entry_detail_sidebar_after', 'add_sidebar_text_after', 10, 2);

Parameters

  • $form (Form Object): The form from which the entry value was submitted.
  • $entry (Entry Object): The current entry.

More information

See Gravity Forms Docs: gform_entry_detail_sidebar_after

Examples

Add a new box with a header and text

This example demonstrates how to add a new box with a header and text after the last box in the Entry detail sidebar.

add_action('gform_entry_detail_sidebar_after', 'add_sidebar_text_after', 10, 2);

function add_sidebar_text_after($form, $entry) {
    echo "<br/><div class='stuffbox'><h3><span class='hndle'>More Cool Stuff</span></h3><div class='inside'>text added after!<br/></div></div>";
}

Placement: This code should be placed in the functions.php file of your active theme.

Source Code: This action hook is located in GFEntryDetail::lead_detail_page() in entry_detail.php.