ext:form - read selectOptions from a database table
The options for a select in the form editor can currently only be configured in YAML:
selectOptions: 10: value: 'image/jpeg' label: 'formEditor.elements.ImageUpload.editor.allowedMimeTypes.jpg' 20: value: 'image/png' label: 'formEditor.elements.ImageUpload.editor.allowedMimeTypes.png'
It would be nice to have the possibility, of reading the selectOptions from a database table. This could be configured similarily to the way it is already done in TCA. (https://docs.typo3.org/m/typo3/reference-tca/master/en-us/ColumnsConfig/Type/Select.html)
Updated by Björn Jacob almost 4 years ago
- Status changed from New to Needs Feedback
- Assignee set to Christian Eßl
Hi Christian, can you check out this extension? Does it suit your needs?
Updated by Christian Eßl almost 4 years ago
thank you! We are doing something similar already here to get Select inputs that get their options from a db table, (so it's not that important of a feature)
but I think it would be useful to support this directly in ext:form just with a bit of YAML configuration.