Feature #60908

Provide Evaluation of TCA select fields

Added by Moritz Ahl about 5 years ago. Updated over 2 years ago.

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

0%

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.


Related issues

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

History

#1 Updated by Benjamin Rau about 5 years ago

I agree, you can only work around this actually by forcing the select to multiselect (size>1).
Beeing able to make a single select with empty default option mandatory is a must have for me, too.

#2 Updated by Anonymous about 5 years ago

+1
I think this feature should be a must have for TYPO3.

#3 Updated by Martin Sonnenholzer about 5 years ago

+1 I had that problem a few times

#4 Updated by Felix Kopp almost 5 years ago

  • Tracker changed from Bug to Feature
  • Category changed from Backend API to FormEngine aka TCEforms

#5 Updated by Krzysztof Napora over 2 years ago

‘minitems’ => 1,
‘maxitems’ => 1,
‘eval’ => ‘required’,

Also available in: Atom PDF