Actions
Bug #94050
openDo not reload form on change if mandatory fields are not filled in
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
Actions