Bug #58520
closedEpic #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
0%
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
Updated by Christian Weiske almost 11 years ago
That's wrong. As soon as you set maxitems > 1
you get a "delete" button.
Updated by Markus Klein almost 11 years ago
- 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?
Updated by Christian Weiske almost 11 years ago
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.
Updated by Markus Klein almost 11 years ago
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.
Updated by Christian Weiske over 8 years ago
- File 2016-09-02 typo3 select size-minitems-maxitems.png 2016-09-02 typo3 select size-minitems-maxitems.png added
This is fixed in TYPO3 7.6.10.
The style is broken (screenshot) because of the min-height of the dropdown, but functionality works.
Updated by Wouter Wolters over 8 years ago
- Status changed from Needs Feedback to Closed
Created a new issue for the styling issue. https://forge.typo3.org/issues/77782 Closing this one as solved.