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.
validation
validation
-
- Type
- array
- Path
- $GLOBALS['TCA'][$table]['columns'][$field]['config']
- Scope
- Proc.
Values for the eval rules. The keys of the array must correspond to the keyword of the related evaluation rule. For
maximum
andRecords Checked maximum
the value is expected to be an integer.Records Checked In Pid
Examples
Only one record can be checked
In the example below, only one record from the same table will be allowed to have that particular box checked.
[
'columns' => [
'checkbox_8' => [
'exclude' => 1,
'label' => 'checkbox_8',
'description' => 'eval=maximumRecordsCheckedInPid, for this PID',
'config' => [
'type' => 'check',
'eval' => 'maximumRecordsCheckedInPid',
'validation' => [
'maximumRecordsCheckedInPid' => 1,
],
],
],
],
]
Copied!