Project

General

Profile

Actions

Bug #60247

closed

eval=>"required" not working with select fields

Added by Moritz Ahl almost 10 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2014-07-10
Due date:
% Done:

0%

Estimated time:
2.00 h
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

As a developer, i want to be able to enforce selection of exactly one item in a select field. But currently, it seems impossible to declare a TCA field of type "select" as mandatory. When leaving the field empty and saving the record.

Setting "eval" to "required" is ignored.

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

Files

Screenshot_23.png (1.52 KB) Screenshot_23.png Moritz Ahl, 2014-07-10 18:50

Related issues 1 (1 open0 closed)

Related to TYPO3 Core - Feature #60908: Provide Evaluation of TCA select fieldsNew2014-08-12

Actions
Actions

Also available in: Atom PDF