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

Field tablecombo

Version: Pro.

Why this type

Select with search over embedded/custom table rows. Combo alternative when the source is not an xPDO class. Requires Pro and advanced-fields capability.

When to use

  • Pick a brand or vendor row from an MS table
  • id from a Collections column
  • Dynamic pick when modResource is wrong

Tips

ModResource picker → relation or combo. Multiple ids → tablemulticombo.

Similar types

Schema

json
{
  "name": "template",
  "type": "tablecombo",
  "label": "Template",
  "optionsSource": {
    "class": "modTemplate",
    "valueField": "id",
    "labelField": "templatename"
  },
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

valueField value.

Section data

Key template in the section data: valueField from optionsSource:

json
{
  "template": 3
}

Chunk example

fenom
{if $template}{$template}{/if}

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