Project

General

Profile

Actions

Feature #89551

closed

Add additionalAttributes to formDefinitions renderingOptions

Added by Andreas Sturmberger about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-10-30
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
no-brainer
Sprint Focus:

Description

Currently, via form definition files, it is only possible to set additionalParams.
Adding additionalAttributes is only possible, if you override the Form.html with your own Extension.

So this should be possible:


TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          formElementsDefinition:
            Form:
              renderingOptions:
                additionalAttributes:
                  novalidate: 'novalidate'

If you add

additionalAttributes="{form.renderingOptions.additionalAttributes}" 

to the typo3/sysext/form/Resources/Private/Frontend/Templates/Form.html

Actions

Also available in: Atom PDF