Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Pro
  5. tablemulticombo

Field tablemulticombo ​

Version: Pro.

Why this type ​

Several values from the same source as tablecombo: optionsSource or a static options list. In the inspector this is a searchable list, not a grid. The data stores valueField values only, not the rows.

The list is empty only when both options and optionsSource are missing. A non-empty static options is used first.

When to use ​

  • Multi-brand filter ids
  • Several category row keys from a table
  • Curated id list without a relation modal

Tips ​

Objects with pagetitle: multirelation. Static list: multiselect.

Similar types ​

Schema ​

json
{
  "name": "templates",
  "type": "tablemulticombo",
  "label": "Templates",
  "optionsSource": {
    "class": "modTemplate",
    "valueField": "id",
    "labelField": "templatename",
    "limit": 50
  },
  "tab": "Content",
  "width": 100,
  "active": true
}

Value ​

Array of valueField values.

Section data ​

Key templates in the section data: array of values:

json
{
  "templates": [3, 5]
}

Chunk example ​

modx
<span>[[+templates.0]]</span>
fenom
{foreach $templates as $id}
  <span>{$id}</span>
{/foreach}

Common properties ​

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25, 33, 50, 66, 75, 100Field width as % of the row (flex). The CMP offers only these valuesyes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

See fields overview.

See also ​