Bug #58521

Epic #62041: twbs Bootstrap backend, refactor EXT:t3skin and HTML5 output

Epic #62836: FormEngine PHP/HTML Improvements & Bootstrap

TCA: select with size=1, maxitems=2 only allows selection of 1 item

Added by Christian Weiske about 6 years ago. Updated over 2 years ago.

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

100%

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

Description

My select element with size=1, minitems=0 and maxitems=2 displays two dropdown boxes. They allow me to select only one element instead of 2.

2014-05-05_tceform_select_maxitems2_size1.png View (5.09 KB) Christian Weiske, 2014-05-05 14:37


Related issues

Related to TYPO3 Core - Bug #58520: TCA: selection cannot be removed when size=1, minitems=0, maxitems=1 Closed 2014-05-05

History

#1 Updated by Markus Klein about 6 years ago

  • Status changed from New to Needs Feedback

How would you select two elements if you only display 1 (size = 1).

That configuration does not make sense.

#2 Updated by Christian Weiske about 6 years ago

In that case at least an error message should be shown.

#3 Updated by Gerrit Code Review about 6 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29946

#4 Updated by Gerrit Code Review about 6 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29946

#5 Updated by Krzysztof Adamczyk almost 6 years ago

Markus Klein wrote:

How would you select two elements if you only display 1 (size = 1).

That configuration does not make sense.

true

#6 Updated by Markus Klein almost 6 years ago

  • Status changed from Under Review to New

#7 Updated by Christian Weiske almost 6 years ago

size=1 means that I want a list of size 1. More could be made visible by scrolling. This is what I want.

Unfortunately, the implementation of the list-with-size-1 in TYPO3 through browsers creates a dropdown, which is unfortunate as it removes the possibility to select multiple entries.

Still, my wish to be able to select multiple entries should be cherished. A solution would be to increase the size of the HTML select element to 2 instead of 1.

#8 Updated by Markus Klein almost 6 years ago

Did you try to build an HTML select with multiple and size=1.

Give it a shot and modify any dropdown in the forge update screen.
Example:

<select name="issue[status_id]" id="issue_status_id" multiple="multiple" size="1">
...
<option value="1" selected="selected">New</option>
...
</select>

Looks really lovely: Some strange element on the screen, no scrollbar. You can navigate with the arrow keys or the mouse wheel, and you've no clue what actually is selected and what is available. Worst UX ever.

#9 Updated by Felix Kopp over 5 years ago

  • Parent task set to #62836

#10 Updated by Benni Mack over 5 years ago

  • Target version set to 7.1 (Cleanup)
  • Sprint Focus set to On Location Sprint

#11 Updated by Bodo Eichstädt over 5 years ago

  • Assignee set to Bodo Eichstädt

#12 Updated by Benni Mack almost 5 years ago

  • Target version changed from 7.1 (Cleanup) to 7.4 (Backend)

#13 Updated by Susanne Moog almost 5 years ago

  • Target version changed from 7.4 (Backend) to 7.5

#14 Updated by Daniel Maier almost 5 years ago

  • Assignee deleted (Bodo Eichstädt)

#15 Updated by Anja Leichsenring almost 5 years ago

  • Sprint Focus changed from On Location Sprint to Remote Sprint

#16 Updated by Benni Mack over 4 years ago

  • Target version changed from 7.5 to 7 LTS

#17 Updated by Morton Jonuschat over 4 years ago

  • Status changed from New to Resolved
  • Assignee set to Morton Jonuschat

This issue has been solved with the FormEngine rewrite. If the renderType is `selectSingle` the maxitems property is ignored and doesn't lead to invalid output. The renderType `selectSingleBox` results in a select field for selecting multiple values.

#18 Updated by Frank Naegler over 4 years ago

  • % Done changed from 0 to 100

#19 Updated by Riccardo De Contardi over 2 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF