diff --git a/typo3/sysext/core/Documentation/Changelog/master/Feature-89551-AddFluidAdditionalAttributesToTheFormElement.rst b/typo3/sysext/core/Documentation/Changelog/master/Feature-89551-AddFluidAdditionalAttributesToTheFormElement.rst new file mode 100644 index 0000000000000000000000000000000000000000..b442a88372b0b6387205eaac7b09ea1de84fcba8 --- /dev/null +++ b/typo3/sysext/core/Documentation/Changelog/master/Feature-89551-AddFluidAdditionalAttributesToTheFormElement.rst @@ -0,0 +1,31 @@ +.. include:: ../../Includes.txt + +=================================================================== +Feature: #89551 - Add fluidAdditionalAttributes to the form element +=================================================================== + +See :issue:`89551` + +Description +=========== + +Allows to configure fluidAdditionalAttributes within form element: +`TYPO3: + CMS: + Form: + prototypes: + standard: + formElementsDefinition: + Form: + renderingOptions: + fluidAdditionalAttributes: + novalidate: 'novalidate' + + +Impact +====== + +For projects using it's own Form template, the following attribute can be set on viewhelper formvh:form as attribute: +`additionalAttributes="{formvh:translateElementProperty(element: form, property: 'fluidAdditionalAttributes')}"` + +.. index:: Fluid, ext:form diff --git a/typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html b/typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html index e9c7fc402649e9ceaa9047184c79fa91ae294160..4e84eef8092c71a752005f8e688425b47318a8da 100644 --- a/typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html +++ b/typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html @@ -10,6 +10,7 @@ addQueryString="{form.renderingOptions.addQueryString}" argumentsToBeExcludedFromQueryString="{form.renderingOptions.argumentsToBeExcludedFromQueryString}" additionalParams="{form.renderingOptions.additionalParams}" + additionalAttributes="{formvh:translateElementProperty(element: form, property: 'fluidAdditionalAttributes')}" > <f:render partial="{form.currentPage.templateName}" arguments="{page: form.currentPage}" /> <div class="actions">