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
maximumRecordsChecked
but with the validation scope limited to records stored in the same page.
Examples¶
[
'columns' => [
'checkbox_7' => [
'exclude' => 1,
'label' => 'checkbox_7',
'description' => 'eval=maximumRecordsChecked, table wide',
'config' => [
'type' => 'check',
'eval' => 'maximumRecordsChecked',
'validation' => [
'maximumRecordsChecked' => 1,
],
],
],
],
]
Copied!