Actions
Bug #99153
openDiscrepancy between behaviour and documentation for "eval" property in "select" fields in TCA
Status:
New
Priority:
Should have
Assignee:
-
Category:
Documentation
Target version:
-
Start date:
2022-11-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
backend, tca, formengine, eval
Complexity:
Is Regression:
Sprint Focus:
Description
In TYPO3 v11, the code below will make a selectSingle a required field, meaning you cannot save and a modal pops up with "The fields marked with an exclamation mark are not yet correctly filled in. Please complete them properly."
But, in the documentation "eval" is not a property, for example for selectSingle.
Possibly, the documentation is incorrect or it works unintentionally. There is also issue #60908, but I think it makes sense to first clarify if we should document "eval" for the select fields or not.
I looked in the source SelectSingleElement. There, AbstractNode::getValidationDataAsJsonString is called which handles eval.
So, by looking at the code, I assume, eval is handled and should be handled.
<settings.test>
<TCEforms>
<label>test</label>
<config>
<type>select</type>
<size>5</size>
<renderType>selectSingle</renderType>
<itemsProcFunc>... some funciton</itemsProcFunc>
<default></default>
<eval>required</eval>
...
Updated by Sybille Peters almost 2 years ago
- Related to Feature #60908: Provide Evaluation of TCA select fields added
Actions