Project

General

Profile

Actions

Bug #94050

open

Do not reload form on change if mandatory fields are not filled in

Added by Daniel Kempf about 3 years ago. Updated over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2021-05-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

In a backend form there are several fields configured by TCA. Some of them are mandatory. Also there are some IRRE fields for adding relations to other tables. In case of adding a new IRRE relation it does kind of deactivate the mandatory validation although some mandatory fields are not filled in.

It would be better not to reload form on changes as long as not all mandatory fields are filled in.

As additional note, the tca of the inline related record has field properties: 'onChange' => 'reload' and 'eval' => 'required'. Example:

'starttype' => [
    'onChange' => 'reload',
    'label' => 'LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype',
    'config' => [
        'type' => 'select',
        'renderType' => 'selectSingle',
        'items' => [
            ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.please_select',-1],
            ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.date',1],
            ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.on_request',2],
            ['LLL:EXT:example/Resources/Private/Language/locallang_db.xlf:tx_example.starttype.continuously',3],
        ],
        'eval' => 'required',
    ],
],


Files

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

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