Feature #100859
closedAdd ID to FlexFormElementContainer rendering
100%
Description
Please add an ID (or at least an unique class in the current frame) in file
\typo3\sysext\backend\Classes\Form\Container\FlexFormElementContainer.php
at approx. line 141 (or 137 in v12):
$html[] = '<div class="form-section" id="' . htmlspecialchars($flexFormFieldName) . '">';
I'm not sure if this relevant for the future (as mentioned here [[https://docs.typo3.org/m/typo3/reference-coreapi/10.4/en-us/ApiOverview/FormEngine/Rendering/Index.html]] in the first note, it should have vanished in v9?), but as this file is still present in v12 I guess this feature-request is still adequate for v11 + v12.
Reason behind this: we're working with several Flexforms (gridelements) and try to organize the form fields in the backend via CSS, as it's not possible to do this otherwise (afaik). It would help to distinguish the fields with specific id's or classes.
Other solutions are appreciated as I don't know if there's a smarter way.
Updated by Oliver Hader over 1 year ago
- Category changed from Backend User Interface to FormEngine aka TCEforms
For repeating FlexForm sections this id
attribute might be duplicated. Thus, using a dedicated class or data
attribute would be the alternative here.
Updated by Gerrit Code Review over 1 year ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79065
Updated by Gerrit Code Review over 1 year ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/79113
Updated by Georg Ringer over 1 year ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset ce0f31221ceec277241ac01c5ea4720fc2ddf6fe.