Project

General

Profile

Actions

Feature #89690

open

ext:form - read selectOptions from a database table

Added by Christian Eßl over 4 years ago. Updated about 4 years ago.

Status:
New
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2019-11-15
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)

Actions #1

Updated by Björn Jacob over 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?

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

Actions #2

Updated by Christian Eßl over 4 years ago

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.

Actions #3

Updated by Susanne Moog about 4 years ago

  • Status changed from Needs Feedback to New
Actions

Also available in: Atom PDF