Actions
Bug #89236
closedTYPO3 Forms Extension: Required - Indicators (*) are not shown
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-09-24
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint
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.
Files
Actions