Project

General

Profile

Actions

Bug #89236

closed

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

Added by Matthias Gwiozda about 5 years ago. Updated over 4 years ago.

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

required_forms.png (36.6 KB) required_forms.png Matthias Gwiozda, 2019-09-24 08:13
kontakt.form.yaml (3.58 KB) kontakt.form.yaml Matthias Gwiozda, 2019-11-22 09:22
9.5.12-dev.png (16.8 KB) 9.5.12-dev.png Ralf Zimmermann, 2019-11-22 16:40
10.2.0-dev.png (18.7 KB) 10.2.0-dev.png Ralf Zimmermann, 2019-11-22 16:41

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #88730: Validators of a field with the same identifier is working only once on a pageClosedMathias Brodala2019-07-11

Actions
Related to TYPO3 Core - Bug #90083: Validators are empty if the same form is rendered multiple times on a pageClosed2020-01-10

Actions
Actions

Also available in: Atom PDF