Attention
TYPO3 v11 has reached end-of-life as of October 31th 2024 and is no longer being maintained. Use the version switcher on the top left of this page to select documentation for a supported version of TYPO3.
Need more time before upgrading? You can purchase Extended Long Term Support (ELTS) for TYPO3 v10 here: TYPO3 ELTS.
onChange
onChange
-
- Type
- string
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]
- Required
- false
- Scope
- Display
If set to
reload
, it triggers a form reload once the value of this field is changed. This is automatically set for fields specified as record type in the control section.The
on
property is useful for fields which are targets of a display condition's FIELD: evaluation.Change On changing the field a modal gets displayed prompting to reload the record.
Examples
Select field triggering reload
[
'columns' => [
'select_requestUpdate_1' => [
'exclude' => 1,
'label' => 'select_requestUpdate_1',
'onChange' => 'reload',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'Just an item',
1,
],
[
'bar',
'bar',
],
[
'and yet another one',
-1,
],
],
],
],
],
]
Copied!