Project

General

Profile

Actions

Bug #102291

closed

Add fluidAdditionalAttributes to Fieldset elements

Added by Henrik Ziegenhain 10 months ago. Updated 3 days ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
Form Framework
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()}>

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #104612: Error on form "Fieldset" without "fluidAdditionalAttributes"ResolvedMathias Brodala2024-08-13

Actions
Actions

Also available in: Atom PDF