Working with Sections
Sections are the primary organisational unit in Atlas Forms. Every control belongs to exactly one section. Sections can be labelled, ordered, and configured as collapsible — and layout controls like tabs and accordions reference sections to determine which controls appear in each tab or panel.
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
| Property | Type | Description |
|---|---|---|
id | string | Unique ID. Referenced by layout controls (tabs, accordion). |
label | string | Header text displayed above the section's controls. |
order | number | Sort order among sections. Managed by drag-and-drop. |
collapsible | boolean | Whether users can collapse this section. |
defaultCollapsed | boolean | Start collapsed on load (only relevant if collapsible is true). |
description | string | Optional 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:
- You create sections and put controls in them
- You add a Tabs layout control to the form
- In the Tabs configuration, you map each tab to a section ID
- The form renderer places each section's controls inside the corresponding tab
// 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.
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:
- Move to another section — Select a target section from the dropdown
- Delete controls too — Permanently removes the section and all its controls