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: a MODX class and optionsSource. In the inspector this is a searchable list, not a grid. The data stores valueField values only, not the rows. Without optionsSource the list is empty.

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
{foreach $templates as $id}
  <span>{$id}</span>
{/foreach}
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–100Field width as % of the row (flex)yes
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 ​