Project

General

Profile

Actions

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 almost 10 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Should have
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2014-05-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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


Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #58521: TCA: select with size=1, maxitems=2 only allows selection of 1 itemClosedMorton Jonuschat2014-05-05

Actions
Related to TYPO3 Core - Bug #67913: Flexform: Minitems > 0 within section prevents from savingClosed2015-07-06

Actions
Related to TYPO3 Core - Bug #76219: select with minitems=1 will not issue an error with no selectionClosed2016-05-18

Actions
Related to TYPO3 Core - Bug #77782: Styling glitch when having a select with size=1, minitems=0, maxitems=1Closed2016-09-02

Actions
Actions #1

Updated by Christian Weiske almost 10 years ago

That's wrong. As soon as you set maxitems > 1 you get a "delete" button.

Actions #2

Updated by Markus Klein almost 10 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?

Actions #3

Updated by Christian Weiske almost 10 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.

Actions #4

Updated by Markus Klein almost 10 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.

Actions #5

Updated by Felix Kopp over 9 years ago

  • Parent task set to #62836
Actions #6

Updated by Bodo Eichstädt over 9 years ago

  • Assignee set to Bodo Eichstädt
Actions #7

Updated by Christian Weiske over 8 years ago

Any update?

Actions #8

Updated by Christian Weiske over 7 years ago

This is fixed in TYPO3 7.6.10.

The style is broken (screenshot) because of the min-height of the dropdown, but functionality works.

Actions #9

Updated by Wouter Wolters over 7 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.

Actions

Also available in: Atom PDF