Field types reference
30 types in Free and 20 in Pro. Pro is enabled with capability advanced-fields. Each type page has Why this type, When to use, Tips, Similar types, JSON Schema, a Section data block, a Fenom example, and Common properties.
Common meta keys (tab, width, description, default, active): overview.
Free
| type | Layer | Page | Output and example |
|---|---|---|---|
text | Free | text | JSON and Fenom |
textarea | Free | textarea | JSON and Fenom |
richtext | Free | richtext | JSON and Fenom |
ace | Free | ace | JSON and Fenom |
number | Free | number | JSON and Fenom |
url | Free | url | JSON and Fenom |
slug | Free | slug | JSON and Fenom |
select | Free | select | JSON and Fenom |
multiselect | Free | multiselect | JSON and Fenom |
radio | Free | radio | JSON and Fenom |
checkbox | Free | checkbox | JSON and Fenom |
checkboxgroup | Free | checkboxgroup | JSON and Fenom |
yesno | Free | yesno | JSON and Fenom |
toggle | Free | toggle | JSON and Fenom |
date | Free | date | JSON and Fenom |
time | Free | time | JSON and Fenom |
datetime | Free | datetime | JSON and Fenom |
color | Free | color | JSON and Fenom |
colorpalette | Free | colorpalette | JSON and Fenom |
file | Free | file | JSON and Fenom |
image | Free | image | JSON and Fenom |
video | Free | video | JSON and Fenom |
button | Free | button | JSON and Fenom |
resourcelist | Free | resourcelist | JSON and Fenom |
hidden | Free | hidden | JSON and Fenom |
readonly | Free | readonly | JSON and Fenom |
xtype | Free | xtype | JSON and Fenom |
heading | Free | heading | JSON and Fenom |
repeater | Free | repeater | JSON and Fenom |
editorjs | Free | editorjs | JSON and Fenom |
Pro
| type | Layer | Page | Output and example |
|---|---|---|---|
relation | Pro | relation | JSON and Fenom |
multirelation | Pro | multirelation | JSON and Fenom |
gallery | Pro | gallery | JSON and Fenom |
map | Pro | map | JSON and Fenom |
table | Pro | table | JSON and Fenom |
embeddedTable | Pro | embeddedTable | JSON and Fenom |
keyvalue | Pro | keyvalue | JSON and Fenom |
tag | Pro | tag | JSON and Fenom |
currency | Pro | currency | JSON and Fenom |
imask | Pro | imask | JSON and Fenom |
combo | Pro | combo | JSON and Fenom |
multicombo | Pro | multicombo | JSON and Fenom |
tablecombo | Pro | tablecombo | JSON and Fenom |
tablemulticombo | Pro | tablemulticombo | JSON and Fenom |
fieldset | Pro | fieldset | JSON and Fenom |
dependent | Pro | dependent | JSON and Fenom |
tv | Pro | tv | JSON and Fenom |
chunk | Pro | chunk | JSON and Fenom |
snippet | Pro | snippet | JSON and Fenom |
jsongrid | Pro | jsongrid | JSON and Fenom |
Composite scenarios
showWhen
The field is visible when another field matches value (not equals).
{
"name": "extra_url",
"type": "url",
"label": "Extra link",
"showWhen": { "field": "show_extra", "value": true }
}Implementation: fieldVisibility.ts.
optionsSource
{
"name": "template",
"type": "tablecombo",
"label": "Template",
"optionsSource": {
"class": "modTemplate",
"valueField": "id",
"labelField": "templatename",
"limit": 100
}
}Processor: mgr/field/options. Hook: pbOnFieldValues.
Resource tables
Use the resource Tables tab or Collections tab type table. Field embeddedTable stores table_key and query options. See table settings and CMP.
Aliases
Full list in FIELD_TYPE_ALIASES (fieldDefaults.ts). Common: relationship → relation, resources → resourcelist, boolean / listyesno → yesno, onlyreading → readonly, colorpicker → color, editor_js → editorjs.
