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

Gravity Forms Field Group Container Premium Add-on Setup Guide

Updated 9 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. What the Add-on Does
  3. Installation
  4. Step 1: Add a Group to a Form
  5. Step 2: Choose the Look
  6. Step 3: Use Columns Inside the Box
  7. Nesting: A Group Inside a Group
  8. Conditional Logic on a Whole Group
  9. Multi-page, AJAX and the Column Layout
  10. Entries, Merge Tags and Notifications
  11. Accessibility
  12. Settings
  13. For Developers
  14. Troubleshooting
  15. A Group Start shows no box on the site.
  16. The fields inside do not sit in columns.
  17. Can I make the box collapsible?
  18. Does it work with my theme?
  19. What happens without an active licence?
  20. Does the add-on send any request to another site?
  21. Give long forms some structure

Video walkthrough

Gravity Forms Field Group: Wrap Fields in Styled Boxes, Columns & Conditional Logic
Watch: group Gravity Forms fields in styled boxes with columns and conditional logic. Watch on YouTube

The Gravity Forms form editor with a Group Start field called Contact details selected: the four fields below it (email, phone, street address and city) have a blue edge on the left, a Group End field closes the group, and the Field Settings on the right show the group box settings Style Card, Columns 2, Icon Mail, Padding 28 and the border, background and legend colours
The form editor: fields between Group Start and Group End get a blue edge, and the group box settings sit in Field Settings.

Requirements

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer, with the standard (not legacy) markup.

What the Add-on Does

Long forms are easier to fill in when related questions sit together: contact details, the delivery address, the billing details. Gravity Forms gives you Section fields, which only add a heading, and Page breaks, which split the form into steps. The Field Group Container add-on adds a third option: a real box around a set of fields, with a legend, a style, its own colours and its own column grid, while the form stays on one page.

You add two fields to the form editor: Group Start and Group End. Everything between them is wrapped, on the site, in one fieldset element with a legend. Visitors see a clearly labelled box. Screen readers announce the group name when they enter it. The box is always visible and not collapsible; if you need collapsible sections, use the accordion and tab add-on instead.

Installation

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin, then activate it.
  2. Go to Forms → Settings → Field Group, enter your key in the Gravity Extra License section and click Activate License.
  3. Open a form in the editor. Group Start and Group End are now in Advanced Fields.

Step 1: Add a Group to a Form

  1. In the form editor, click Group Start in Advanced Fields and drag it to the place where the box should begin.
  2. Add or drag the fields that belong in the box below it.
  3. Click Group End and place it below the last field of the box.
  4. Select the Group Start and set its label. The label becomes the legend of the box. The description, if you write one, appears under the legend.

While you edit, every field inside a group gets a coloured edge on its left, so you can see what belongs to which box. A second, nested group gets a second, orange edge. The Group Start shows a small preview line with the style, the number of columns and the padding you chose.

Keep the markers on their own row

Group Start and Group End always take the full width of the form. If you put one next to another field in the layout editor, the add-on still gives it the full width on the site, but the editor will look odd. Give each marker a row of its own.

Step 2: Choose the Look

A form on the site with four group boxes one under the other: Card group with a user icon and a soft shadow, Outline group with a home icon and the legend sitting in the border, Shaded group with a calendar icon on a pale blue background, and Plain group with only a heading and a line under it
The four presets: Card, Outline, Shaded and Plain.
Setting What it does
Style Card is a white box with a soft border and shadow. Outline has a strong border with the legend sitting in it. Shaded is a tinted background without a border. Plain has no box at all, just a heading with a line under it.
Columns One to four columns for the fields inside the box. See step 3.
Icon An optional icon in front of the legend, from a built-in set of sixteen simple icons: user, mail, phone, home, building, card, calendar, clock, lock, info, star, heart, cart, tag, file and location. The icons are drawn inline, so nothing is loaded from another site.
Padding Space between the border and the fields, 0 to 80 pixels. Leave it empty for the style default.
Border, Background, Legend Three colours. Type a hex value such as #2b6cb0, or pick one with the colour picker. The cross button goes back to the style default.
Hide the legend visually The legend stays in the page for screen readers but is not shown. Use it when the heading above the box already says everything.

Every setting can stay on Use the default. The defaults come from Forms → Settings → Field Group, where you set one style for the whole site, for example your brand colour as the border of every card. A colour that is not a valid hex value is refused on that screen and ignored in the form editor, so a typing mistake can never break the markup.

Step 3: Use Columns Inside the Box

Inside the box, the fields use the same twelve-column grid as the rest of the form. With the Columns setting on 2, every field that has no width of its own takes half of the row; on 3 it takes a third; on 4 a quarter. A width you chose in the Gravity Forms layout editor always wins, so you can mix: put two fields side by side with the layout editor, and leave the rest to the column setting.

  • A field you set to the full width in the layout editor stays full width. This is the way to give one field, such as a street address, the whole row in a two-column box.
  • Section fields and nested groups always take the whole row.
  • On a phone (screens narrower than 641 pixels) every field takes the whole row, whatever the column setting says.

Nesting: A Group Inside a Group

One level of nesting is allowed. Put a second Group Start inside the first one, its fields, and its own Group End, and the inner box appears inside the outer box and always takes the whole row of the outer box. A third level is not supported: the innermost Group Start is ignored and its fields stay in the box around it. The form editor tells you when this happens.

Conditional Logic on a Whole Group

Select the Group Start and open Conditional Logic, then choose when the group is shown or hidden, for example “show this group if Do you want a call back is yes”. The whole box, with everything in it, appears and disappears together.

The important part happens on the server. Gravity Forms checks every field when it validates the form, and a required field that is hidden by logic does not block the form. A required field inside a hidden group would normally still block it, because the field itself has no logic. The add-on closes this gap: when a group is hidden, every field inside it is treated as hidden too, so:

  • Required fields inside a hidden group never stop the form from being submitted.
  • Nothing inside a hidden group is saved with the entry, even a value the visitor typed before the group was hidden.
  • Nested groups follow the outer group: when the outer group is hidden, the inner one is hidden as well.
  • A field with its own logic inside a visible group still follows that logic.
  • This is decided on your server, not by the script on the page, so it also holds for visitors without JavaScript.

Your form is never changed by this. The add-on works on a temporary copy while the submission is processed.

Multi-page, AJAX and the Column Layout

  • Multi-page forms: a group cannot cross a page break. Put the Group End before the page break, or the Group Start after it. The form editor shows a red warning on a group that crosses a page break, and on the site that broken group simply shows no box, so no field is lost. Each page can have as many groups as you like.
  • AJAX forms: the groups work the same with AJAX. When a field inside a group has an error, the form comes back with the box intact and the message under the field.
  • Several forms on one page: each form has its own groups; the ids never clash.
  • Column layout: the fields inside a group keep the widths you set in the Gravity Forms layout editor.
  • Legacy markup: forms that still use the old list markup are left alone (the box needs the standard markup), and all their fields show as before.

Entries, Merge Tags and Notifications

A Gravity Forms entry with the Name field, then a grey heading row Filled details that comes from a group, then the Filled one field with its value tomatoes; a second group called Optional details has no heading because none of its fields were filled in
The entry shows the group legend as a heading, only for groups that hold a value.

Group Start and Group End are display-only: they store nothing in the entry, are not offered as merge tags, and do not appear in exports. They do give structure to what people read:

  • On the entry screen the legend is shown as a grey heading, like a Section field, before the fields of the group, but only when the group holds at least one value. With “show empty fields” switched on the heading is shown for every group that is not hidden.
  • The all fields merge tag, in notifications and in confirmation messages, shows the same heading in HTML and in plain text mail. A group with nothing filled in has no heading, and a hidden group has none either.
  • The groups never add a column to the entry list.

Accessibility

  • The box is a real fieldset and the legend is a real legend, the element assistive technology uses to announce a group of related fields.
  • The description is linked to the group, so it is read together with the legend.
  • The icon is decorative and hidden from screen readers.
  • With “Hide the legend visually” the legend is still read.
  • Colours are your choice: check the contrast between the legend colour and the background you pick.

Settings

Forms → Settings → Field Group holds the licence and the defaults for new and existing groups: style, number of columns, border, background and legend colours and padding. Nothing else needs to be configured.

For Developers

The markup is small and easy to style. The Group Start becomes a fieldset with the classes below; the fields are inside a div with the class gegroup__body, which is a grid.

Hook Meaning
fieldset.gegroup The box. Extra classes: gegroup–card, gegroup–outline, gegroup–shaded, gegroup–plain, gegroup–cols-2 (or 3, 4), gegroup–has-icon, gegroup–legend-hidden. The CSS class you type in the field settings is added too.
--gegroup-border, --gegroup-bg, --gegroup-legend, --gegroup-pad, --gegroup-radius CSS custom properties. The first four are set on the box when you choose a colour or padding; the radius can be set in your own CSS.
legend.gegroup__legend The legend, with the icon and the title inside.
.gegroup__description The description under the legend.
.gegroup__body The inner grid with the fields.
/* A narrower box and a custom corner radius for one group.
   Give the Group Start the CSS class team-box in its Appearance settings. */
.gform_wrapper fieldset.gegroup.team-box {
    --gegroup-radius: 16px;
    max-width: 640px;
}

Troubleshooting

A Group Start shows no box on the site.

The group is not closed correctly. Open the form in the editor: a Group Start without a Group End after it, a group that crosses a page break, and a Group End without a Group Start each show a red warning. Fix the order and save the form.

The fields inside do not sit in columns.

Check that the Columns setting is above 1 and that the fields have no width set in the layout editor (a width you set wins). On narrow screens all fields take the whole row on purpose.

Can I make the box collapsible?

No. The box is always visible. For collapsible sections or tabs, use the GravityExtra accordion and tab panel add-on, which works on Section fields.

Does it work with my theme?

It works with the Gravity Forms theme framework and with the other Gravity Forms themes that use the standard markup. The style comes from one small stylesheet that is loaded only on pages that have a form with a group; colours and radius can be overridden in your own CSS.

What happens without an active licence?

You cannot add new Group Start or Group End fields. Groups already on your forms keep rendering, so your forms never change after a licence expires.

Does the add-on send any request to another site?

No. The stylesheet, the icons and the editor script are part of the add-on. Only the licence check, which you trigger yourself on the settings screen, talks to gravityextra.com.

Give long forms some structure

Wrap related fields in a labelled group box with its own style, columns and conditional logic, without page breaks.

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