Issue Bug Resolved

#105368Form input fields that have native browser validation do not get marked as invalid but still block any saving of a record

Ayke Halder 10/20/24, 16:21 updated 11/11/26, 13:30

Description

Any HTMLInputElement that has native browser-validation might block the form from beeing sent.
But no validation error from the TYPO3 side is shown.

It’s about all those input-fileds which have browser-native syntax-validation either

  • implicit by type="email,date,number,…" or
  • explicitly added via attributes like min, max, minlength, maxlength …

——

Also see

——

Without fix

Changed field: valid vs. invalid value

typo3-be-before-changed-field-without-any-error.png typo3-be-before-changed-field-with-invisible-validation-error.png

With fix

Changed field: valid vs. invalid value

typo3-be-after-changed-field-without-any-error.png typo3-be-after-changed-field-with-validation-error.png

Reviews 3

Files 6

History 626

Show 01 earlier messages
  1. Ayke Halder commented and changed attached typo3-be-form-validation-error.webm attached typo3-be-form-validation-fixed.webm <span data-processor="relativetime" data-value="2024-10-20T18:51:06+00:00" > 10/20/24, 18:51 </span>

    Bug without this change:

    Video: attachment:typo3-be-form-validation-error.webm

    Fixed with this change:

    Video: attachment:typo3-be-form-validation-fixed.webm

  2. Ayke Halder changed attached typo3-be-after-changed-field-without-any-error.png attached typo3-be-after-changed-field-with-validation-error.png attached typo3-be-before-changed-field-without-any-error.png attached typo3-be-before-changed-field-with-invisible-validation-error.png <span data-processor="relativetime" data-value="2024-10-20T19:06:58+00:00" > 10/20/24, 19:06 </span>

  3. Georg Ringer commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2026-11-11T13:30:14+00:00" > 11/11/26, 13:30 </span>

    Applied in changeset commit:371537332ce4f2266abbb23ca3fd6c3f40ba50fd.