Add-on: Entry To Database
Entry to Database is a Gravity Forms add-on that saves entries into a custom table in your WordPress database or in an external MySQL or MariaDB database. Use it when another application, a report or a data warehouse needs the form data in its own table, without exporting and importing files.
What you can do with Entry to Database
- Connect to a table in the WordPress database, to an external database, or to a connection defined with the
GWP_DB_CONFIGSconstant inwp-config.php. - Map form fields to the columns of the table you select.
- Insert a new row for every entry, or update an existing row that matches a unique identifier.
- Choose what happens to the row when an entry is trashed or deleted: nothing, flag the row, or remove it.
- Keep database credentials encrypted, or out of the database entirely.
- Save only entries that match a condition, or save as a Gravity Flow workflow step.
Where to start
- Set up database connections, or add them via wp-config.php.
- Set up the Entry to Database Feed to map the fields of a form.
No table yet? Add an extra table to your WordPress database shows how.
Requirements
- Gravity Forms 2.5 or later
- WordPress 6.2 or later
- PHP 7.0 or later
- A MySQL or MariaDB table to write to, in the WordPress database or on an external server
- Optional: Gravity Flow, to save to the database as a workflow step
Features and pricing are on the Entry to Database product page.
Add an extra table to your WordPress database
Guide to creating a new table in your WordPress database using phpMyAdmin.
Add database connections via wp-config.php
The GWP_DB_CONFIGS constant allows you to define multiple database connections in the wp-config.php. Each connection has its own unique settings, such as table names, database names, and optional external connection details.
MySQL common Data Types
Overview of commonly used MySQL data types. When you are mapping field values to database columns, make sure the field value matches the format of the database column.
Set up database connections
Add, edit, or remove database connections that are available to your Entry to Database Feeds in individual forms.
Set up the Entry to Database Feed
This guide walks you through navigating form settings, adding feeds, configuring database actions, and mapping fields. Fine tune your data management with trash/delete settings and conditional logic.