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.
eval
eval
-
- Type
- string (list of keywords)
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Proc. / Display
Configuration of field evaluation.
Keywords:
- maximumRecordsChecked
-
If this evaluation is defined, the maximum number of records from the same table that can have this box checked will be limited. If someone tries to check the box of a record beyond the allowed maximum, the box will be unchecked automatically upon saving.
The actual limit is defined with the validation property validation.
- maximumRecordsCheckedInPid
- Similar to
maximum
but with the validation scope limited to records stored in the same page.Records Checked
Examples
[
'columns' => [
'checkbox_7' => [
'exclude' => 1,
'label' => 'checkbox_7',
'description' => 'eval=maximumRecordsChecked, table wide',
'config' => [
'type' => 'check',
'eval' => 'maximumRecordsChecked',
'validation' => [
'maximumRecordsChecked' => 1,
],
],
],
],
]