Using Gravity Forms ‘gform_print_entry_footer’ PHP action

The gform_print_entry_footer action hook allows you to add a custom footer to the print entry screen in Gravity Forms.

Usage

add_action('gform_print_entry_footer', 'custom_footer', 10, 2);

Parameters

  • $form (Form Object): The current form.
  • $entry (Entry Object): The current entry array.

More information

See Gravity Forms Docs: gform_print_entry_footer

Examples

This example adds a simple custom footer to the Print Entry screen.

add_action('gform_print_entry_footer', 'custom_footer', 10, 2);
function custom_footer($form, $entry) {
  echo "<hr /><small>My custom footer</small>";
}

This example adds a custom footer containing the form title to the Print Entry screen.

add_action('gform_print_entry_footer', 'form_title_footer', 10, 2);
function form_title_footer($form, $entry) {
  echo "<hr /><small>Form: {$form['title']}</small>";
}

Add a custom footer with the entry date

This example adds a custom footer with the entry date to the Print Entry screen.

add_action('gform_print_entry_footer', 'entry_date_footer', 10, 2);
function entry_date_footer($form, $entry) {
  $date = $entry['date_created'];
  echo "<hr /><small>Entry Date: {$date}</small>";
}

This example adds a custom footer with the total score (assuming a field with id 5) to the Print Entry screen.

add_action('gform_print_entry_footer', 'total_score_footer', 10, 2);
function total_score_footer($form, $entry) {
  $total_score = $entry['5'];
  echo "<hr /><small>Total Score: {$total_score}</small>";
}

This example adds a custom footer with a dynamic copyright message to the Print Entry screen.

add_action('gform_print_entry_footer', 'dynamic_copyright_footer', 10, 2);
function dynamic_copyright_footer($form, $entry) {
  $year = date('Y');
  echo "<hr /><small>Copyright &copy; {$year} - All Rights Reserved</small>";
}