Important: The form partials mark rejected fields
Description
The shared form partials below
Resources/ read the validation results of
a field, but showed no message, and the class is- sat on the element
around the field only.
A field that failed validation now gets invalid itself, in place of the
default class f3- of the form field ViewHelpers, and the
attributes aria- and
aria-. Field
renders the messages of the field right after it in the element of that id,
with the class ace-, each in an ace-. The element
around the field carries invalid as well. The new partial
Error looks each message up as the label
create.<object,
then create., of the extension passed as extension, and
falls back to the message of the validator. All three get the arguments of the
error. The title of the required mark is the label create. of that
extension, required when it has none.
Date shows a value it is given as Y-, the only format a
date input accepts, instead of d..
See The form partials.
Impact
An extension that renders its form through these partials ships the labels
create. and create. to get translated messages.
academic_jobs does. A project that overrides one of the partials
keeps its own output until it adopts the changes. TYPO3 v13 and v14 behave
alike here.