Issue Bug Closed

#99153Discrepancy between behaviour and documentation for "eval" property in "select" fields in TCA

Sybille Peters 11/21/22, 12:15 updated 11/19/24, 09:40

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>
        ...

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.