Actions
Feature #101899
openallow Itemsfunctions for ValuePicker in TCA and FlexForms
Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2023-09-12
Due date:
% Done:
0%
Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:
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.
Actions