Portal Community

Minimal Example

{
  "id": "advanced-options-panel",
  "type": "collapsible-panel",
  "order": 10,
  "width": "full",
  "settings": {
    "title": "Advanced Options",
    "sectionId": "sec-advanced",
    "defaultOpen": false
  }
}

Settings Reference

SettingTypeDefaultDescription
titlestringPanel header text
subtitlestringSecondary text below title in header
sectionIdstringForm section to display when expanded
defaultOpenbooleantrueStart expanded (true) or collapsed (false)
iconstring (FA class)Icon displayed in the panel header
borderbooleantrueShow a border around the panel
animateHeightbooleantrueAnimate height transition on expand/collapse
chevronPositionleft | rightrightPosition of the collapse/expand chevron icon

Collapsed by Default (Optional Section)

{
  "id": "tax-exemption-panel",
  "type": "collapsible-panel",
  "order": 5,
  "settings": {
    "title": "Tax Exemption Details",
    "subtitle": "Complete this section only if you have a tax exemption certificate",
    "icon": "fa-solid fa-file-invoice",
    "sectionId": "sec-tax-exemption",
    "defaultOpen": false
  }
}

Expanded by Default (Important Section)

{
  "id": "emergency-contact-panel",
  "type": "collapsible-panel",
  "order": 8,
  "settings": {
    "title": "Emergency Contact",
    "icon": "fa-solid fa-phone-volume",
    "sectionId": "sec-emergency",
    "defaultOpen": true,
    "border": true
  }
}

Collapsible Panel vs Card Container vs Accordion

ControlItemsCollapsibleUse When
collapsible-panel1YesSingle optional/expandable section
card-container1OptionalAlways-visible card; can add collapse toggle
accordion2+YesMultiple collapsible sections in sequence
Collapsible Panel and Required Fields If a collapsible panel contains required fields and it starts collapsed (defaultOpen: false), the form will still show validation errors for those fields on submit attempt. The panel will automatically expand when validation runs and errors are found inside it.