onChange¶
- onChange¶
- Path
$GLOBALS['TCA'][$table]['columns'][$field]
- Required
false
- Type
string
- 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
onChange
property is useful for fields which are targets of a display condition's FIELD: evaluation.On changing the field a modal gets displayed prompting to reload the record.
Examples¶
Select field triggering reload¶

EXT:styleguide/Configuration/TCA/tx_styleguide_elements_select.php¶
[
'columns' => [
'select_requestUpdate_1' => [
'label' => 'select_requestUpdate_1',
'onChange' => 'reload',
'config' => [
'type' => 'select',
'renderType' => 'selectSingle',
'items' => [
[
'label' => 'Just an item',
'value' => 1,
],
[
'label' => 'bar',
'value' => 'bar',
],
[
'label' => 'and yet another one',
'value' => -1,
],
],
],
],
],
]