Bug #58520
closed
Epic #62041: twbs Bootstrap backend, refactor EXT:t3skin and HTML5 output
Epic #62836: FormEngine PHP/HTML Improvements & Bootstrap
TCA: selection cannot be removed when size=1, minitems=0, maxitems=1
Added by Christian Weiske about 10 years ago.
Updated over 7 years ago.
Category:
FormEngine aka TCEforms
Description
A TCA select field with size=1
, minitems=0
and maxitems=1
always has a selection.
It is not possible to remove it.
As soon as size=2
, you get a "x" delete button that allows you to remove the selected item.
Files
That's wrong. As soon as you set maxitems > 1
you get a "delete" button.
- Status changed from New to Needs Feedback
How do you suggest how this should work in the browser? Should there be an empty option for the select?
Since it's not possible to have a size=1-select that has no selected option, there are only two options:
1. Make the select size 2 automatically, which allows us to remove the item
2. Automatically add a "no option selected" option that gets special treatment on saving.
Variant 2 is probably the more sensible approach. A "x" button next to the select box could add that option so that it's not visible from the start.
This is going to get a missing feature.
Unfortunately I'm not a specialist on FormEngine, so now clue how to implement that.
I guess it also involves quite some JS magic.
- Parent task set to #62836
- Assignee set to Bodo Eichstädt
This is fixed in TYPO3 7.6.10.
The style is broken (screenshot) because of the min-height of the dropdown, but functionality works.
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF