TutorialHow to Store Gravity Forms Data in a Custom WordPress Table Using Entry to Database

Looking to organize your Gravity Forms entries more efficiently by saving them directly into your own custom database tables? You’re in the right place. This tutorial walks you through how to use the GravityWP Entry to Database add-on to store form data in your WordPress database — no third-party platforms, middleware, or code needed.

We’ll use a real-world example: Creating a staff directory by storing employee details in a structured table. Along the way, we’ll break down important terminology and show you how to get everything working inside your WordPress site.

Why Use Entry to Database?

Gravity Forms stores submissions in the default WordPress tables, but that structure isn’t always flexible enough for advanced reporting or integrations. That’s where Entry to Database comes in.

With this add-on, you can:
  • Send Gravity Forms data directly into custom database tables
  • Use native WordPress or external database connections
  • Structure and format data exactly the way you need it
  • Enable more flexible, SQL-friendly storage and reporting options

And the best part? It works right inside Gravity Forms with a no-code approach.

What You’ll Need

  • A WordPress site with Gravity Forms installed
  • The GravityWP Entry to Database add-on
  • Access to your site’s database (e.g., phpMyAdmin or Adminer)

Key Terminologies (Explained Simply)

If you’re new to database terms or GravityWP tools, here are some concepts to know:

TermMeaning
Database TableA storage structure in your WordPress database where data lives (like a spreadsheet).
ColumnA single field in your database table (e.g., name, email).
RowOne entry in the database table (e.g., one staff member).
Database ConnectionTells the add-on where to send the data (internal WordPress DB or external).
FeedA Gravity Forms setting that connects your form to a specific table and maps the fields.
Data TypesDefines what kind of value goes in each column (e.g., text, date, integer).

Real-World Example: Staff Directory Form

Let’s say you want to collect staff details and save them into a custom table. Here’s how we did it step-by-step:

Step 1: Create a Custom Database Table

We created a table called staff_directory with the following columns:

  • staff_id (int)
  • name (varchar)
  • email (varchar)
  • job_title (varchar)
  • department (varchar)

This table structure is designed to hold essential information about each staff member. Every column in this table will correspond to a field in the form later on. The staff_id can be manually assigned or auto-incremented depending on your workflow.

You can create this table using phpMyAdmin or Adminer.

Gravity Forms Entry to Database form data stored in custom WordPress table via phpMyAdmin.
Successfully stored Gravity Forms data visible inside the staff_directory table in phpMyAdmin.

Step 2: Create the Gravity Form

We built a simple form with the following fields:

  • Name (Single Line Text)
  • Email (Email Field)
  • Job Title (Single Line Text)
  • Department (Dropdown Field)

This form directly matches the database columns. Keep in mind that field names don’t need to be identical to database column names, but field mapping must be accurate in the next step.

Gravity Forms Entry to Database staff directory table structure in phpMyAdmin.
WordPress database table structure for the staff directory created for the Gravity Forms Entry to Database integration.

Step 3: Configure the Database Connection

Navigate to: Forms > Settings > Entry to Database > Add Connection

We chose:

  • Connection Type: Internal Database
  • Connection Name: Staff Directory DB
  • Database Table: staff_directory

This configuration tells the add-on to store form submissions directly into the staff_directory table that already exists in your WordPress database. You don’t need to provide host, username, or password — it’s all handled internally.

Gravity Forms Entry to Database internal database connection settings with selected custom table.
Database connection setup using Internal Database with the staff_directory table selected.

Step 4: Set Up the Feed

Next, go to: Forms > Settings > Entry to Database > Add Feed

We entered:

  • Feed Name: Insert to Staff Directory
  • Database Configuration: Staff Directory DB
  • Feed Action: Insert New Row

Then we mapped the fields:

  • Name → name
  • Email → email
  • Job Title → job_title
  • Department → department

This mapping ensures that when a user submits the form, the data goes into the correct columns in your table.

Gravity Forms Entry to Database field mapping settings showing matched columns and form fields.
Entry to Database feed setup showing field-to-column mapping configuration.
Gravity Forms Entry to Database complete field mapping setup for custom staff directory.
Full field mapping configuration for all staff form fields connected to custom database columns.

Step 5: Test the Form

Once everything is configured:

  • Preview your form and submit a test entry
  • Open phpMyAdmin (or Adminer) and check if the data appears in the staff_directory table

This step is crucial to make sure the form and database connection are working properly.

Gravity Forms Entry to Database front-end staff form with name, job title, email, and department fields.
Gravity Forms front-end form capturing staff details for Entry to Database mapping.
Gravity Forms Entry to Database form submitted with example staff data.
Recorded data from the submitted form data

Bonus Tip: Use Required Fields

Make sure important fields like name, email, and job_title are marked as required in the form builder. This helps prevent incomplete entries from being submitted and saved.

Why This Method Works

Using the Entry to Database add-on, you skip the limitations of the default Gravity Forms storage structure. Instead, you:

  • Organize your form data in your own tables
  • Gain better control over structure and formatting
  • Make reporting, filtering, and exporting easier

And because it’s 100% within WordPress, there are no third-party tools involved.

Final Thoughts

If you’re looking to level up your data organization inside WordPress, Entry to Database is one of the most powerful Gravity Forms add-ons available.

With a little setup and understanding, you can create robust solutions like staff directories, custom CRMs, and more—all powered by your forms and your data.

Need more tutorials like this? Check out our documentation or explore other GravityWP tools to supercharge your workflow.

Our Premium Add-ons for Gravity Forms

Read more tutorials about GravityWP BV

GravityWP develops add-ons to collect and manage your data better.
All tutorials GravityWP BV