Skip to main content
Version: 1.28 (Current)

Forms 2.0 - Dynamic Container

caution

This page is preliminary and subject to change as Forms 2.0 continues to be developed.

A container whose fields are added programmatically when the form loads, by the Dynamic Fields actions, instead of being placed in the Form Builder. It arranges them like a Layout Container.

Adding a Dynamic Container​

Drag the Dynamic Container tile from the field palette onto the Canvas - see Build for more on adding and arranging fields in general. Unlike a Layout Container, you can't drag fields into it: the builder shows "Fields can only be added programmatically by using the 'Dynamic Fields' actions." It stays empty on the Canvas until the form runs.

Parameters​

Only Dynamic Container-specific parameters are listed below. See Common Field Settings for the settings shared with other field types.

FieldDescription
Layout ModeVertical (the default) and Horizontal arrange the contained fields automatically. Manual allows free placement and resizing in a mosaic layout.
ColumnsOnly shown in Manual mode. The number of columns in the mosaic layout. Default 4.
AlignmentOnly shown in Horizontal mode (Top/Middle/Bottom, default Bottom) or Vertical mode (Left/Center/Right, default Left). The alignment of the contained fields.
GapSpacing 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.
PaddingThe padding for the container, in CSS units. Default 8px 0px.
Root CSS ClassesOne 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 (Narrow, Medium, Wide). Click the device icon next to the setting to switch it on. See Layout Container for how this works.

Adding fields at runtime​

A Dynamic Container receives its fields from an Add [Field Type] Field action (for example Add Text Box Field, Add Dropdown Field, Add Date Field) in the form's On Preinit event. Each of these actions takes the target container's Name as its Container Id (if the container is inside a Section or Repeater, its full name, such as ContactInfo:DynamicFieldContainer), along with the new field's Name, Label, Hint, and other settings (initial value, layout position, visibility/enabled conditions, validators, and so on), and inserts that field into the container when the action runs. Not every field type can be added this way - Text Box, Textarea, Dropdown, Date, Time, Money, Phone, Rich Text Box, and Content Block are supported. See Dynamic Forms for how to build a form this way, including adding one field per row of a SQL query.

Common settings that apply to Dynamic Container​

A Dynamic Container supports these Common Field Settings:

  • General (Label and Name only - Dynamic Container does not support Hint)
  • Active
  • Visibility settings
  • Enabled settings

Dynamic Container does not support Field Automations or Field Validators, since it has no value of its own to bind or validate.

Tokens​

Each field in a Dynamic Container, including fields added at runtime, has its own [FieldName] token. A Dynamic Container doesn't add to its fields' names: if it's inside a Section or Repeater, its fields take that Section's or Repeater's prefix, for example [ContactInfo:FieldName].

The container also returns all of its fields' values together, referenced using the container's Name - for example, if the container's Name is DetailsContainer:

TokenDescription
[DetailsContainer]A JSON object of every field it contains, keyed by field Name (for example {"FirstName":"Ana","City":"Cluj"}).
[DetailsContainer:Json]The same JSON object.
[DetailsContainer:QueryString]The same field values joined in query-string format (for example FirstName=Ana&City=Cluj).

Last updated: November 18, 2026