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

Gravity Forms Matrix Grid Field Setup Guide

Updated 10 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Build your first grid
  5. Rows
  6. Columns and column types
  7. Stable ids
  8. Totals
  9. Validation
  10. Merge tags, calculations and conditional logic
  11. Phones and accessibility
  12. Entries, notifications and export
  13. Matrix Grid compared with the official Gravity Forms add-ons
  14. Uninstalling
  15. Troubleshooting

Video walkthrough

Gravity Forms Matrix Grid Field Setup Guide: Rows, Typed Columns & Live Totals
Video setup guide: Gravity Forms Matrix Grid Field Watch on YouTube

The Gravity Forms Matrix Grid add-on adds a new field type to Gravity Forms: a table of fixed, labelled rows and typed columns. Every column has its own input type (text, number, currency, drop-down, a single checkbox, a radio choice across the row, or a date), and numeric columns add up into live row totals, column totals and a grand total. Any cell or total can be used in Number field calculations, conditional logic and notifications. This guide covers installing the add-on, building a grid, the column types, totals, validation, merge tags, entries and export, and how the field differs from the official Gravity Forms add-ons.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. The field works with the Gravity Forms theme framework and with legacy markup, on single-page and multi-page forms, with or without AJAX submission. Everything runs on your own server; the add-on makes no outside connection beyond checking gravityextra.com for your licence and plugin updates.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Matrix Grid, enter your GravityExtra licence key and press Activate License.
  • Open any form in the form editor. A Matrix Grid button now appears in the Advanced Fields group.

Without an active licence the Matrix Grid button is not shown, so the field cannot be added to new forms. Grids that already exist show a licence notice in the form editor, visitors see a short “not available” note instead of the table (the rest of the form still submits), and every stored entry stays readable for administrators on the entry screen, in notifications and in the export.

Build your first grid

Add a Matrix Grid field and click it. A new field starts with three rows and three number columns with all totals switched on, so you see a working table at once. The grid builder sits in the field settings under the label and description.

The grid builder in the form editor: rows with optional values, typed columns with their limits, totals and validation options, and the live preview on the left
Rows, typed columns, totals and validation are set up in the field settings; the preview updates as you type.

Rows

Each row has a label (what visitors see at the start of the row), an optional value and an In totals tickbox. The value is a short code you can use in merge tags instead of the row id, for example web for a row labelled “Website redesign”. Untick In totals for a row that should be filled in but not counted, such as a notes row.

To add many rows at once, open Paste rows, paste one row per line (optionally Label|value) and press Add pasted rows or Replace all rows. Rows can be moved up and down and removed with the buttons next to them.

Columns and column types

Each column has a label, a type and its own settings. The types are:

  • Text – a short free-text cell, for notes or names.
  • Number – a number with optional minimum, maximum, step and number of decimals.
  • Currency – an amount in your Gravity Forms currency (two decimals by default). Visitors may type the currency symbol and thousands separators; totals of currency columns are shown as money.
  • Drop-down – a choice from a list you set, one choice per line, optionally Text|value.
  • Checkbox (single tick) – one tickbox per cell. A ticked cell counts as 1 in totals, so a column of ticks can count how many rows are ticked.
  • Radio (one choice per row) – every radio column is one option, and visitors pick one option across the radio columns of each row. Give each radio column a score to turn a rating row into numbers that add up.
  • Date – a date picker that stores the date as YYYY-MM-DD.

Every column can also have a width (for example 120px or 20%), a default value (a checkbox default of 1 starts ticked), and Required in every row. Number, currency, checkbox and radio columns have an In totals tickbox; text, drop-down and date columns never add up.

Stable ids

Each row and column gets a short id such as r2 or c3, shown in the builder. Ids are never reused or renumbered, even when you move, rename or remove rows and columns, so merge tags, conditional logic and exports keep meaning the same thing for old and new entries.

Totals

A cell adds up when its column is a number, currency, checkbox or radio column with In totals on, and its row has In totals on. In the Totals section of the builder you choose what the table shows:

  • Show a total for each row adds a total column at the right, with your own heading (for example “Week”).
  • Show a total for each column adds a totals row at the bottom (for example “Day total”).
  • Show the grand total shows the sum of all counted cells, in the bottom-right corner or in its own row.

Totals update while visitors type. They are only a display: when the form is submitted the add-on works the totals out again on the server from the submitted cells, and that is what is stored and used.

A weekly timesheet grid on a desktop page: project rows, Mon to Wed hour columns, a currency rate, a billable tick and notes, with week totals, day totals and the grand total
On a desktop the grid is a real table with row and column headers and live totals.

Validation

The grid checks cells while visitors type, marks a problem right in the cell and stops the page from being submitted until it is fixed. The same rules are checked again on the server, so a visitor who switches off JavaScript or sends the form another way cannot get bad values in. The rules are:

  • Required cells: a column marked Required in every row must be filled in each row (for a radio column, each row needs a choice).
  • Numbers: number and currency cells must be numbers within the minimum and maximum, on the step (counted from the minimum) and with no more decimals than set.
  • Choices and dates: a drop-down cell must hold one of its choices and a date cell a real calendar date.
  • At least N cells filled: set a minimum in the Validation section. A ticked checkbox counts as a filled cell and a radio choice counts once per row.
  • Each row complete once started: when a visitor fills in any cell of a row, every other cell of that row must be filled too (checkboxes are optional).

Mark the whole field Required in the Rules section to demand at least one filled cell. If you enter a custom validation message on the field, it replaces the add-on’s list of cell problems. Each problem cell gets a message under it and is marked for screen readers.

Merge tags, calculations and conditional logic

The builder lists the merge tags of the grid. With a field labelled Hours and id 7 they are:

  • {Hours:7} – the whole grid as a table (plain text lines in text e-mails).
  • {Hours:7:r2:c3} – one cell: row r2, column c3. You can also use row and column values or labels, for example {Hours:7:web:mon}.
  • {Hours:7:row:r2} – the total of row r2.
  • {Hours:7:col:c3} – the total of column c3.
  • {Hours:7:total} – the grand total.

Use them anywhere Gravity Forms merge tags work: notifications, confirmations, the {all_fields} tag, feeds and PDF templates that print merge tags. In a Number field with Enable Calculation, type the cell or total tags into the formula, for example {Hours:7:total} * {Rate:3} or {Hours:7:r1:c1} * 2 + {Hours:7:col:c2}. The Number field updates in the browser as the grid changes and is recalculated on the server from the submitted cells when the form is saved. A cell that is empty, or a grid hidden by conditional logic, counts as 0.

For conditional logic, pick the Matrix Grid field in a rule: the rule compares the grand total, so “Hours is greater than 40” shows an Overtime reason field only for long weeks. The rule works in the browser and again on the server. To use a single row or column total in a rule, add a hidden Number field whose formula is that total, for example {Hours:7:row:r2}, and base the rule on it.

Phones and accessibility

The field is an HTML table with a caption, a header for every column and every row, and a hidden label for every cell such as “Mobile app, Mon”, so screen readers announce where a visitor is. The arrow keys move between cells: up and down move along a column, left and right move along a row when the cursor is at the edge of the text. On screens narrower than 640 pixels each row becomes its own card, with the column name beside each cell and the row total at the bottom, so nothing scrolls sideways.

The same timesheet on a phone: each project row is a card with the column name beside each cell, the week total at the bottom, and a final card with the day totals and grand total
On a phone each row becomes a card; totals stay visible.

Entries, notifications and export

Each submission stores the grid as JSON with a stable schema: the rows and columns with their labels at the time of the submission, the cell values and the totals. Numbers are stored in a plain format (currency with two decimals), so they sort and calculate the same everywhere. Because the labels are stored with the entry, renaming a row later does not change old entries.

The entry screen shows the grid as a table with the totals you switched on. Drop-down cells show their choice text, ticks and radio choices show “Yes” and currency cells show your currency. The entries list shows a compact summary such as “10 cells · Total 44”. Administrators can edit the grid on the entry edit screen.

The entry screen showing a submitted timesheet as a table with each project row, the hours per day, the rate, the billable ticks, the notes, the week totals, the day totals and the grand total
The entry screen shows the stored grid as a table with its totals.

In Forms → Import/Export → Export Entries every grid adds one column per cell (named “Hours: Website redesign / Mon”), plus one column per row total, per column total and for the grand total, next to the field’s own summary column. Cell values that start with a spreadsheet formula character are made safe.

Matrix Grid compared with the official Gravity Forms add-ons

Gravity Forms already has two table-like inputs, and our own List Field Pro add-on extends one of them. Here is how they differ, so you can pick the right one.

  • Survey Add-On Likert field (including multi-row Likert): every row is a statement and visitors pick one radio choice per row on a shared scale such as “Disagree” to “Agree”. It is built for surveys and scores. There are no text, number or date cells, no totals and no cell values for calculations.
  • Gravity Forms core List field: visitors add as many rows as they like, each made of text boxes. You do not set the rows or their labels, columns have no types, and there are no totals.
  • Matrix Grid: you set fixed, labelled rows and typed columns (text, number, currency, drop-down, checkbox, radio, date). Every cell is checked on the server, row, column and grand totals are shown live, and any cell or total can be used in calculations, conditional logic and notifications.
  • Our List Field Pro add-on: adds typed columns to the List field where visitors add their own rows. Choose List Field Pro when the number of rows is up to the visitor (household members, line items, references); choose Matrix Grid when the rows are known in advance and you want totals (days of the week, rooms, sizes, months, skills). See the List Field Pro page.

Use the Likert field for opinion scales, the List field or List Field Pro for open-ended lists, and Matrix Grid for structured tables of numbers, choices and notes.

Uninstalling

Deleting the add-on from the Plugins screen removes its options (licence key and status, settings and the scheduled licence check). Forms, Matrix Grid fields and entries are kept, so a re-install shows everything again.

Troubleshooting

  • No Matrix Grid button in the editor: activate your licence in Forms → Settings → Matrix Grid.
  • A total stays at 0: check that the column is a number, currency, checkbox or radio column and that In totals is ticked for both the column and the row.
  • A calculation shows 0: check the merge tag ids against the list under the grid; a tag for a row or column that does not exist counts as 0.
  • A value is refused: read the message under the cell; the step is counted from the column minimum (or from 0).

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