Gravity Forms Tip: How to Access Log Files Directly from the Entry Details Page

Oct 20, 2023

2 Min. Read

Share URL

This page may contain affiliate links. Please read my disclaimer for more information.

The Problem

We troubleshoot and review a good amount of forms for Gravity Forms users, and I was recently annoyed that I could not quickly access the logs from the entry details page. Instead, you would need to go to Forms > Settings > Logs, which is a few too many steps when you’re in a hurry.

I thought the entry details page would be a smart place to have a button since the notes section on that page is often the first place a user would look for an indication of an issue.

How To Fix It

I initially wanted to add the button to the notes section, but decided it would be best to keep the button separate and instead added a new meta box to the page.

As you can see, this solution only displays a button for the core log files. With some code modification, you could add a button for any add-ons with enabled logging.

This is the code that makes this possible:

https://gist.github.com/chrisegg/84878ff47b08e7316f1b6ae390b5e4e1

How To Implement This Code

Copy and paste the code above to your themes functions.php file or use a code snippet plugin like WPCodeBox.

You do not need to make any modifications, but logging will need to be enabled. If it is not, instead of a button, you will see this message: “Log file not found.”.

If you wanted to make this a separate plugin, you could do that as well.

  1. Create a new folder (directory), name it gr-log-button
  2. Create a new PHP file with that folder/directory, name it gf-log-button.php
  3. Copy and paste the plugin header below to the file.
  4. Copy and paste the code above to a file below the plugin header.
  5. Save your changes.
  6. Zip up the file.
  7. Upload the file via the WordPress plugin installer.
  8. Activate the plugin.
<?php
/*
Plugin Name: GravityRanger GF Log Button
Description: Adds a button to view Gravity Forms core log file within the entry details page.
Version: 1.0
Author: Chris Eggleston
Site: https://gravityranger.com
*/

Need More Help?

If you run into issues with this code or have any questions, please use the comments below, and we’ll be sure to get back to you.

Photo of author
About the Author
Chris Eggleston
Husband. Father of 4. Grandpa of 2. Chief Problem Solver exploring business systems, technology, AI & faith — helping people solve real problems. @mantiswp @chrisegg

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Post

Styling Gravity Forms Radio Buttons Like Toggle Switch

Problem I recently had someone ask if it was possible to style radio buttons like a toggle switch in Gravity...

Mar 17, 2026

4 min. read

Automatically Switch from a Registration Form to a Waitlist in Gravity Forms

This tutorial shows you how to automatically switch from a registration form to a waitlist form in Gravity Forms using entry limits or attendee tracking with a custom shortcode.

Sep 29, 2025

4 min. read

Using AI + Gravity Forms to Streamline Job Applications

Hiring is tough. Sorting through dozens, or even hundreds, of job applications is time-consuming, repetitive, and prone to human bias. That’s where combining Gravity Forms, Gravity Flow, and AI automation comes in.

Sep 26, 2025

2 min. read

Turn Gravity Forms Image Choice Field into carousel

Problem Recently, I saw a Gravity Forms user looking for a way to style the new Image Choice field. Specifically,...

Jul 14, 2025

3 min. read

Offer Subscription With One-Off Add-On Product Options with Gravity Forms

Want to offer a subscription + one-time add-ons in Gravity Forms? Here’s how to do it using Stripe’s setup fee feature in a single payment feed.

Mar 24, 2025

2 min. read

Gravity Forms A/B Split Testing

Problem We recently received an interesting request from a Gravity Forms user who wanted to know how to do A/B...

Mar 21, 2025

5 min. read