This is a feature that I always felt like was missing from Gravity Forms. The ability to see the date for the last form entry on the Gravity Forms Summary page. This simple code snippet will add a column to your Forms table with the last entry date for each form. It comes very handy if you want to see which forms are being used on the site and which might have been forgotten about and might need to be moved to a more prominent location.

Place this code snippet in your child theme functions.php
// FG last entry column:
// Step 1: Add Custom Column to Form List
add_filter('gform_form_list_columns', 'add_last_entry_date_column');
function add_last_entry_date_column($columns) {
$columns['last_entry_date'] = 'Last Entry Date';
return $columns;
}
// Step 2: Display the Date of the Last Form Entry
add_action('gform_form_list_column_last_entry_date', 'display_last_entry_date_column', 10, 2);
function display_last_entry_date_column($form) {
global $wpdb;
// Get the ID of the form
$form_id = $form->id;
// Query to get the last entry date for the form
$last_entry_date = $wpdb->get_var($wpdb->prepare("
SELECT MAX(date_created)
FROM {$wpdb->prefix}gf_entry
WHERE form_id = %d
", $form_id));
// Display the last entry date or a placeholder if no entries exist
if ($last_entry_date) {
echo date('Y-m-d H:i:s', strtotime($last_entry_date));
} else {
echo 'No Entries';
}
}