Portal Community

What is a Section?

A section is a named group of controls. In a simple flat form, all controls might live in one section. In a complex form, you might have sections for "Company Details", "Contact Information", "Bank Details", and "Documents".

The section schema:

{
  "id": "section-company",
  "label": "Company Details",
  "order": 0,
  "collapsible": true,
  "defaultCollapsed": false,
  "description": "Enter the company's primary information"
}

Adding Sections

Click Add Section in the canvas toolbar. A new section appears at the bottom of the form. Give it a meaningful label — the label appears as a section header in the rendered form.

Section Properties

PropertyTypeDescription
idstringUnique ID. Referenced by layout controls (tabs, accordion).
labelstringHeader text displayed above the section's controls.
ordernumberSort order among sections. Managed by drag-and-drop.
collapsiblebooleanWhether users can collapse this section.
defaultCollapsedbooleanStart collapsed on load (only relevant if collapsible is true).
descriptionstringOptional sub-heading text below the section label.

Reordering Sections

Drag the section header to reorder sections. The order property is updated automatically. Controls within each section maintain their relative order.

Sections and Layout Controls

Layout controls like Tabs and Accordion do not contain controls directly — instead they reference sections by ID. This is a key design distinction:

// Tabs control referencing sections
{
  "id": "main-tabs",
  "type": "tabs",
  "label": "Form Sections",
  "settings": {
    "tabs": [
      { "label": "Company", "sectionId": "section-company" },
      { "label": "Contacts", "sectionId": "section-contacts" },
      { "label": "Banking", "sectionId": "section-banking" }
    ],
    "defaultTab": 0,
    "lazy": true
  }
}

Collapsible Sections

Mark a section as collapsible to let users hide it when not in use. This is especially useful for optional information blocks or advanced settings. The defaultCollapsed flag sets the initial state — useful for less-critical sections that should be available but not prominent.

Section vs Collapsible Panel Control There are two ways to create collapsible groupings: (1) a section with collapsible: true, and (2) a collapsible-panel layout control. Use section-level collapsibility for top-level grouping. Use the collapsible-panel control for nested sub-groups within a section.

Deleting a Section

Right-click the section header and choose Delete. You will be prompted to choose what happens to the controls in the section:

Layout Control References If a layout control (tabs, accordion) references the section you are deleting, those tab/accordion items will break. Remove the reference from the layout control first, or the form will show empty panels.