#97563Add rendering option to `select` fields to hide them if only 1 value selectable
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.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Related issues 1
History 6
-
Jonas Eberle changed Related to #97562 <span data-processor="relativetime" data-value="2022-05-06T08:00:44+00:00" > 05/06/22, 08:00 </span>
-
Jonas Eberle commented <span data-processor="relativetime" data-value="2022-05-16T19:16:49+00:00" > 05/16/22, 19:16 </span>
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)
-
Riccardo De Contardi changed Tags
typo3-uxux <span data-processor="relativetime" data-value="2024-06-27T09:47:57+00:00" > 06/27/24, 09:47 </span> -
Georg Ringer commented and changed status
NewClosed <span data-processor="relativetime" data-value="2025-04-20T16:07:09+00:00" > 04/20/25, 16:07 </span>Hey,
I just saw this issue and I will close this issue for the following reason: The value can be populated dynamically by itemsprocfuncs, tsconfig, … which makes it impossible to pick that value up in datahandler if not already in the view.
On a project level this can be of course achieved by hiding the field via tsconfig and fill the fields with e.g. datahandler hooks.
-
Jonas Eberle commented <span data-processor="relativetime" data-value="2025-04-22T07:52:31+00:00" > 04/22/25, 07:52 </span>
Hi Georg, that function, if implemented, would be in FormEngine, not DataHandler.
But I agree that this is not very important and only happens in edge cases.
I would opt for making this configurable via PageTS. Especially for development purposes all fields should be visible. Otherwise debugging is quite difficult.