Issue Feature Closed

#101899allow Itemsfunctions for ValuePicker in TCA and FlexForms

Dieter Porth 09/12/23, 07:01 updated 12/22/24, 22:36

Description

In order to design the value picker dynamically, I use the following code in the TCA.

   'valuePicker' => [
       'mode' => 'append',
       'items' => \MyVendor\MyExtension\Domain\Repository\RepositoryForTca::getValuepickerItemsFromTable('tx_mytable'),
   ], 

Of course this doesn’t work in Flexforms. It would be desirable to have a parameter ‘itemsProcFunc’, similar to the type ‘ select’ [[https://docs.typo3.org/m/typo3/reference-tca/9.5/en-us/ColumnsConfig/Type/Select.html#:~:text=selectSingle%3A%20Select%20one%20element%20from%20a%20list%20of,checkboxes%20are%20displayed%20instead%20of%20a%20select%20list.]] allowed is.

Reviews 0

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