Project

General

Profile

Actions

Feature #60908

open

Provide Evaluation of TCA select fields

Added by Moritz Ahl over 10 years ago. Updated almost 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-08-12
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Currently, it is not possible to require a (single) select field as mandatory, meaning non-empty or required in TCA. An "eval" property simply does not exist and is ignored if given.

Example:

'owner' => array(
        'exclude' => 1,
        'exclude' => 0,
        'label' => 'Owner',
        'config' => array(
                        'type' => 'select',
                        'foreign_table' => 'tx_myext_domain_model_owner',
                        'size' => 1,
                        'autoSizeMax' => 30,
                        'items' => array(
                                array('', ''),
                        ),
                    'maxitems' => 1,
                        'minitems' => 1,
                        'multiple' => 0,
                        'eval' => 'required,notEmpty'
        ),
),

That is really lame :-) A CMS must provide at least basic evaluation options for all input types.


Files

tcademo.zip (6.31 KB) tcademo.zip Gernot Ploiner, 2022-11-27 07:27

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #60247: eval=>"required" not working with select fieldsClosed2014-07-10

Actions
Related to TYPO3 Core - Bug #94050: Do not reload form on change if mandatory fields are not filled inNew2021-05-04

Actions
Related to TYPO3 Core - Bug #99153: Discrepancy between behaviour and documentation for "eval" property in "select" fields in TCAClosed2022-11-21

Actions
Actions

Also available in: Atom PDF