Project

General

Profile

Actions

Feature #97563

open

Add rendering option to `select` fields to hide them if only 1 value selectable

Added by Jonas Eberle over 2 years ago. Updated 5 months ago.

Status:
New
Priority:
Could have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2022-05-06
Due date:
% Done:

0%

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

Description

This is about adding a TCA rendering option to select fields that would hide the field from the editor if there is only 1 value available.

This allows decluttering the backend form by removing fields where the editor does not actually have a choice. This leads to better UX.

The immediate use case is if the Core wants to provide fields but not provide any options (except default) for it because it only becomes useful if an integrator adds functionality there.

There might also be other use cases for integrators to use this option. For example, when dynamically adding items through a userFunc which could result in only 1 item.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Task #97562: Remove the example "Layout 1/2/3" entries from tt_content.layout / pages.layoutRejected2022-05-06

Actions
Actions #1

Updated by Jonas Eberle over 2 years ago

  • Related to Task #97562: Remove the example "Layout 1/2/3" entries from tt_content.layout / pages.layout added
Actions #2

Updated by Björn Jacob over 2 years ago

I would opt for making this configurable via PageTS. Especially for development purposes all fields should be visible. Otherwise debugging is quite difficult.

Actions #3

Updated by Jonas Eberle over 2 years ago

Thanks for the feedback. We also talked about it in our weekly Structured Content Initiative call.

Consider if it leads to problems if a field "disappears" like that.

Just some ideas:

Maybe it could depend on the Development mode.

It could also show as "disabled" only (not hidden). (Consider if this could be misinterpreted as "missing permissions" in that case)

Actions #4

Updated by Riccardo De Contardi 5 months ago

  • Tags changed from typo3-ux to ux
Actions

Also available in: Atom PDF