Actions
Bug #102291
closedAdd fluidAdditionalAttributes to Fieldset elements
Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2023-10-30
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:
On Location Sprint
Description
Currently it is not possible to pass additionalAttributes to "Fieldset" form elements.
For (nearly?) all other element it is possible.
In typo3/sysext/form/Resources/Private/Frontend/Partials/Fieldset.html just replace
<fieldset id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}">
with
<f:variable name="additionalAttributes" value="" />
<f:for as="value" key="key" each="{formvh:translateElementProperty(element: element, property: 'fluidAdditionalAttributes')}">
<f:variable name="additionalAttributes" value='{additionalAttributes} {key}="{value}"' />
</f:for>
<fieldset id="{element.uniqueIdentifier}" class="{element.properties.elementClassAttribute}" {additionalAttributes -> f:format.raw()}>
Actions