🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms wpDataTables Integration Premium Add-on Setup Guide

Updated 7 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. Requirements
  3. Installation
  4. Create a table
  5. 1. Form
  6. 2. Columns
  7. 3. Which entries
  8. 4. Order and size
  9. 5. Who can see it, auto-refresh
  10. 6. Edit entries from the table
  11. Show the table on a page
  12. Editing from the table
  13. The tables list
  14. For developers
  15. Privacy and security
  16. Troubleshooting
  17. The table says it is not set up yet.
  18. A visitor sees “Please log in to see this table.”
  19. New entries do not appear on an open page.
  20. Numbers show the wrong decimal sign.
  21. What happens without an active licence?
  22. Turn Your Gravity Forms Entries into Live Tables

Video walkthrough

Gravity Forms wpDataTables Integration: Show Entries in a Live, Searchable Table
Watch: show Gravity Forms entries in a live wpDataTables table, step by step. Watch on YouTube

The Gravity Forms wpDataTables Integration Premium Add-on shows Gravity Forms entries in wpDataTables tables. It adds a Gravity Forms entries data source to wpDataTables: you pick a form, choose which fields and entry details become columns, decide which entries to show, and save. The add-on creates a normal wpDataTables table that reads the entries live from Gravity Forms every time it is shown, so search, sorting, paging, responsive rows, export buttons and the table look all come from wpDataTables, and the data is never out of date.

A Volunteer roster page with a wpDataTables table: Print, Excel, CSV and Copy buttons, a Show 25 entries menu and a search box above twelve volunteer rows with the columns First name, Last name, Team, Hours, E-mail, Start date, Days, Notes, Entry ID, Photo and Signed up, for example Ben Osei, Compost, 12,50 hours, a blue e-mail link and a gewdt-sunflower.png photo link
Gravity Forms entries in a wpDataTables table: search, sorting, paging and the export buttons come from wpDataTables, the rows come live from the form.

Requirements

  • WordPress 6.5 or newer, PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer (tested with 2.9.8 and 3.1.2).
  • wpDataTables 6.6 or newer. The free version from WordPress.org is enough; the paid version works too (tested with the free 6.6.1.1).
  • An active licence key to create and change tables, for auto-refresh and for editing. Existing tables keep showing without one.

Installation

  1. Install and activate wpDataTables in Plugins → Add New (search for wpDataTables).
  2. Upload this add-on in Plugins → Add New → Upload Plugin and activate it.
  3. Go to Forms → Settings → wpDataTables Integration and enter your licence key. In the same screen you can set the defaults for new tables: rows per page, responsive tables and the table tools (print, copy, Excel and CSV buttons).
  4. Open Forms → wpDataTables Tables. If wpDataTables is not active yet, the screen says so and links to the plugin installer.

Create a table

Click Add table. The builder has six steps on one screen.

1. Form

Give the table a name (it is also the table name in wpDataTables) and choose the Gravity Forms form. Changing the form later clears the chosen columns and field rules, because they belong to the old form.

2. Columns

Use the Add column menu to add columns one by one, or Add all form fields to add every field at once. The menu has two groups:

  • Form fields: every field of the form, plus the parts of name and address fields (for example Volunteer (First) and Volunteer (Last)), so first and last names can be separate, sortable columns. Fields that are only visible to administrators in Gravity Forms are marked “admin only field”.
  • Entry details: Entry ID, Date submitted, Date updated, Submitted by, Source page, User IP, Payment status, Payment amount, Transaction ID, Starred, Read and the Frontend Entry View approval status.

Each column has a Column title and a Column type. The type tells wpDataTables how to sort, search and show the values:

Type Use it for
Text Names, choices, paragraphs, lists. Several ticked checkboxes are shown comma-separated.
Whole number / Decimal number Number, quantity and total fields. Numbers sort as numbers and follow the number format set in wpDataTables.
Date / Date and time Date fields and the entry dates. They are shown in the wpDataTables date format.
E-mail E-mail fields: shown as mailto links.
Link Website and file upload fields: a single file becomes a link with its file name. A field with several files shows several links as text.
Image An upload field with one image per entry, shown as an image.

The add-on picks a sensible type for each field; change it when you need to. Move columns with the up and down buttons, and remove them with the cross.

The Columns step of the table builder: a numbered list of eleven columns, each with its source field, a Column title box, a Column type menu and move up, move down and remove buttons, for example Volunteer (First) titled First name as Text, Hours per month titled Hours as Decimal number and Date submitted titled Signed up as Date, and below it an Add column menu with the buttons Add column and Add all form fields
Pick fields, name parts and entry details as columns, give them titles and wpDataTables column types, and put them in order.

3. Which entries

  • Entry status: active entries (the normal choice), spam or trash.
  • Submitted: any time, in the last N days (moves with today) or a fixed date range.
  • Starred and Read: all, yes or no.
  • Payment status: for example only Paid orders.
  • Only the entries the logged-in visitor submitted: a personal “my submissions” table. Visitors who are not logged in see no rows.
  • Only entries approved with Frontend Entry View approval, if you moderate entries with the Frontend Entry View add-on.
  • Field rules: up to three rules (is, is not, contains, greater than, less than, is not empty), matched all together or any one of them. Example: Team is Harvest and Hours per month greater than 8.

4. Order and size

Read entries by decides which entries are read when there are more than the Row limit (up to 2,000). For example the newest 500 entries, or the 20 orders with the highest total. Visitors can still sort every column in the table.

5. Who can see it, auto-refresh

Who can see the rows: everyone, logged-in users, or only chosen roles. The check runs on the server: a refused visitor gets a short message (with a login hint when logged out) and no entry data, also not through the refresh route. Auto-refresh (0 = off, otherwise 15 seconds to one hour) makes open pages fetch new and changed entries without a reload; the current page, sort order and search stay as they are.

6. Edit entries from the table

Tick Editing and tick Editable on the columns that may be changed. Editable are text, paragraph, e-mail, number, phone, website, drop down, radio buttons, date fields and the parts of name and address fields. The table then gets an Edit column, which is not searched or sorted.

Users with the Gravity Forms edit entries capability can always edit. You can also allow the user who submitted the entry and chosen roles. Everybody else sees no Edit link, and the server refuses their requests.

Click Create the wpDataTables table. The Use the table box shows the shortcode and a preview of the first rows as you see them.

Show the table on a page

Add the wpDataTables block to a page and pick the table, or paste its wpDataTables shortcode with the table ID shown in the list. Every Gravity Forms table is also listed in wpDataTables → Browse tables.

Style it in wpDataTables

Open the table in the wpDataTables editor to change column widths, colours, alignment, hidden columns, responsive behaviour, the rows per page, the table tools and the skin. A notice in its data source tab reminds you that the form, columns and filters are set in Forms → wpDataTables Tables, with a button to get there.

Editing from the table

Users who may edit see an Edit link on their rows. It opens a dialog with the editable fields and their current values. Values are checked with the field’s own rules: required fields, e-mail format, number range, the choices of drop downs and radio buttons, dates and maximum length. Errors are shown next to the field. After saving, the dialog closes, the table shows the new values, and the entry gets a note such as “Edited from a wpDataTables table: Team, Hours” with the user’s name.

An Edit entry 2 dialog over the table with the fields First name Ana María, Team Compost, Hours 7.5 and E-mail, and the buttons Cancel and Save
Editing an entry from the table: the values are checked with the field rules and saved into the Gravity Forms entry.

The tables list

Forms → wpDataTables Tables lists every Gravity Forms table with its form, the number of columns, the shortcode, auto-refresh and editing. Form, columns and filters opens the builder; Style in wpDataTables opens the wpDataTables editor. Changing the columns later updates the same wpDataTables table, so shortcodes on your pages keep working. Delete a table in wpDataTables → Browse tables; the entries in Gravity Forms are never deleted.

For developers

  • The table type is gewdt_gf_entries. The settings of all tables are stored in the option gewdt_tables (table ID to settings); the content saved by wpDataTables is only a short summary.
  • Action gewdt_entry_updated runs after an entry was edited from a table, with the updated entry, the labels of the changed fields and the table settings.
  • Entry values reach wpDataTables as plain text with square brackets encoded, so markup and shortcodes in entries never run, also when wpDataTables is set to parse shortcodes.

Privacy and security

  • Only users who may view Gravity Forms entries and may create or edit wpDataTables tables can create or change Gravity Forms tables.
  • The form of a table is stored by the add-on: changes in the wpDataTables editor cannot point a table at another form.
  • The refresh and edit routes check a security token, the table’s visibility rules and, for edits, the owner or capability rules and the table’s filters. Only the chosen fields can be written.
  • Nothing is sent to an outside service.

Troubleshooting

The table says it is not set up yet.

The table was created in the wpDataTables editor with the Gravity Forms type, or its settings were removed. Create Gravity Forms tables in Forms → wpDataTables Tables.

A visitor sees “Please log in to see this table.”

Who can see the rows is set to logged-in users or roles. Change it in step 5 of the builder.

New entries do not appear on an open page.

Turn on auto-refresh, or reload the page. Every page view reads the entries live; check the filters and the row limit if an entry is still missing.

Numbers show the wrong decimal sign.

The number format comes from wpDataTables → Settings; the add-on hands numbers over in that format.

What happens without an active licence?

Existing tables keep showing. Creating or changing tables, auto-refresh and editing need an active licence.

Turn Your Gravity Forms Entries into Live Tables

Column mapping, filters, live data, auto-refresh and editing from the table, in the wpDataTables tables you already know.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr