Project

General

Profile

Actions

Bug #98648

open

Inspector-TextareaEditor fails to validate

Added by Tim Horstmann about 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2022-10-18
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
11
PHP Version:
8.1
Tags:
form textarea textareaeditor propertyValidators js backend validation
Complexity:
Is Regression:
Sprint Focus:

Description

I have a custom form finisher with a textarea field as required option in the form editor. If I save the form without a value, the validation does not behave like when using a simple input.

The onChange handler does not trigger the error message like shown under the input field.

When saving the form, the finisher does not get a red border. Instead a generic error is shown.

I think, the error is somewhere in the backend JS.
My expectation is, that a textarea field behaves the same way like an input with Inspector-TextEditor template.

Here is my simplified setup.

TYPO3:
  CMS:
    Form:
      prototypes:
        standard:
          formElementsDefinition:
            Form:
              formEditor:
                editors:
                  900:
                    selectOptions:
                      190:
                        value: MyFinisher
                        label: MyFinisher
                propertyCollections:
                  finishers:
                    190:
                      identifier: MyFinisher
                      editors:
                        100:
                          identifier: header
                          templateName: Inspector-CollectionElementHeaderEditor
                          label: MyFinisher
                        110:
                          identifier: myInput
                          templateName: Inspector-TextEditor
                          label: MyInputLabel
                          propertyPath: options.myInput
                          propertyValidators:
                            10: NotEmpty
                        120:
                          identifier: myTextArea
                          templateName: Inspector-TextareaEditor
                          label: MyTextareaLabel
                          propertyPath: options.myTextArea
                          propertyValidators:
                            10: NotEmpty
          finishersDefinition:
            MyFinisher:
              formEditor:
                iconIdentifier: form-finisher
                label: MyFinisher
                predefinedDefaults:
                  options:
                    myInput: ''
                    myTextArea: ''

Tested with TYPO3 11.5.17 and Browsers Firefox and Edge.


Files

fields.PNG (5.32 KB) fields.PNG Tim Horstmann, 2022-10-18 09:41
save.PNG (6.98 KB) save.PNG Tim Horstmann, 2022-10-18 09:41

No data to display

Actions

Also available in: Atom PDF