Issue Feature Closed

#89551Add additionalAttributes to formDefinitions renderingOptions

Andreas Sturmberger 10/30/19, 17:37 updated 02/27/20, 12:42

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

Reviews 1