Issue Bug Closed

#89236TYPO3 Forms Extension: Required - Indicators (*) are not shown

Matthias Gwiozda 09/24/19, 08:15 updated 04/13/20, 11:20

Description

There is a bug in the typo3 form Plugin in Version 9.5 (File: Resources/Private/Frontend/Partials/Field/Field.html):
​

<label class="control-label" for="{element.uniqueIdentifier}">{formvh:translateElementProperty(element: element, property: 'label')}<f:if ="{element.required}"><f:render partial="Field/Required" /></f:if></label>

​
The condition {element.required} is never met and the required – indicator (*) is never displayed.
​
The correct condition is {element.properties.fluidAdditionalAttributes.required}:
​

<label class="control-label" for="{element.uniqueIdentifier}">{formvh:translateElementProperty(element: element, property: 'label')}<f:if condition="{element.properties.fluidAdditionalAttributes.required}"><f:render partial="Field/Required" /></f:if></label>

​
There are more places (Templates) where {element.required} is used

There is an image attached to this issue that shows the <f:debug>{element}</f:debug> at the field.html.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.