Issue Feature Under Review

#89690ext:form - read selectOptions from a database table

Christian Eßl 11/15/19, 10:47 updated 11/15/26, 16:06

Description

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)

Reviews 1

History 38

  1. Björn Jacob commented and changed status New Needs Feedback assigned to Christian Eßl <span data-processor="relativetime" data-value="2019-11-21T15:48:45+00:00" > 11/21/19, 15:48 </span>

    Hi Christian, can you check out this extension? Does it suit your needs?

    See https://github.com/tritum/static_info_tables_formelements

  2. Christian Eßl commented <span data-processor="relativetime" data-value="2019-11-22T07:34:02+00:00" > 11/22/19, 07:34 </span>

    Hi,

    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.