#111711Browser form validation prevents expected TCA onChange behaviour.
Description
Problem
For the form inputs of type “number” with a set “min” attribute, the browser validation is triggered on every submit. This includes the submit triggered by a onChange field change. TYPO3 internally is switching off the internal field validation (Validation.suspend()), but not the browser validation which still prevents the temporary save and refresh of the page for refreshing the fields.
Steps to Reproduce
In a TCA configuration from a model
1. create a new property, type, with a dropdown field with the onChange=‘reload’.2. create a second property that is only shown on one option of the type property, and it has a
range => [ 'lower' => 1, 'upper' => 100 ]
3. create a third property similar to the second one but it.s shown on the other option of the type property.
4. change between the two options of the type property without changing anything in the other fields. You will not be able to change/reload the view because of the browser form field validation.
Cause
Internally the Validation.suspend()
turns off the typo3 form fields validation, but not the browser validation.
Reviews 1
Linked, but not in Forger: Change 98301
History 01
-
Gerrit Code Review pushed patch set 1 for main to change 98301 status
NewUnder Review 12/03/26, 14:09