Forms 2.0 - Layout Container
This page is preliminary and subject to change as Forms 2.0 continues to be developed.
A container that holds other fields, purely for layout purposes - arranging them into rows, columns, or a free-form grid. Layout Containers can be nested inside one another to build multi-column, panel-style layouts, as shown in the Form Builder example.
A Layout Container has no value and doesn't change the names of the fields inside it. To group fields into one value under a title, use a Section instead. For a container that also allows fields to be added into it programmatically at runtime, see Dynamic Container. For a container that lets the end user add and remove repeating groups of fields, see Repeater.
Adding a Layout Container
Drag the Layout Container tile from the field palette onto the Canvas - see Build for more on adding and arranging fields in general. Once it's on the Canvas, drag other fields into it to group them.
Parameters
Only Layout Container-specific parameters are listed below. See Common Field Settings for the settings shared with other field types.
| Field | Description |
|---|---|
| Layout Mode | Vertical (the default) and Horizontal arrange the contained fields automatically. Manual allows free placement and resizing in a mosaic layout. |
| Columns | Only shown in Manual mode. The number of columns in the mosaic layout. Default 4. |
| Alignment | Only shown in Horizontal mode (Top/Middle/Bottom, default Bottom) or Vertical mode (Left/Center/Right, default Left). The alignment of the contained fields. |
| Gap | Spacing between the contained fields - Compact, Normal (the default), or Loose. A container nested in another container can also Inherit this from its parent, which is then its default. |
| Padding | The padding for the container, in CSS units. Default 8px 0px. |
| Root CSS Classes | One or more CSS class names, separated by spaces, applied to the field's root element only. Supports Tokens. |
Layout Mode, Alignment, Gap, and Padding can have a different value for each form width. Click the device icon next to the setting to switch it to responsive values, then set a value for Narrow (under 768 px), Medium (768 to 1199 px), and Wide (1200 px and over). The width is the form's own width, not the browser window's. For example, use Horizontal for Medium and Wide and Vertical for Narrow, so that side-by-side fields stack on small screens. Click the icon again to go back to one value for all widths.
Common settings that apply to Layout Container
A Layout Container supports these Common Field Settings:
- General (Label and Name only - Layout Container does not support Hint)
- Active
- Visibility settings
- Enabled settings
Because a Layout Container holds other fields, its Visibility settings and Enabled settings apply to everything nested inside it as a group: hiding the container hides every field within it, and disabling it disables every field within it, regardless of those fields' own individual Visibility and Enabled settings.
Layout Container does not support Field Automations or Field Validators, since it has no value of its own to bind or validate.
Tokens
A Layout Container doesn't return a token of its own. Each field inside it keeps its own token - for example [FirstName] and [LastName] - exactly as if the container weren't there. If the Layout Container is inside a Section or Repeater, its fields take that Section's or Repeater's prefix, for example [Contact:FirstName].
To get several fields' values as one JSON object, put them in a Section. The whole form's values are available as [FormData], the value of the form's root container.
Last updated: November 18, 2026