Bug #96654
closedProblem when using maxLength with input type number in TCA or FlexForm
0%
Description
In typo3 by default the eval 'int, num' will return an input with type number, I found a problem that does not respect the 'max' attribute, since are it works correctly good with the input type text, as I check the problem exists in HTML, and in some case solved by type 'tel', I will suggest if are possible to add as 'eval' or we check another solution for this problem in TCA and FlexForm.
Test Case:
You need to create an input in the Flexform file with eval 'int' or 'num' and give it a 'max' value, you will find how it will give the way to type even length is more than the maxLength.
Files
Updated by taieb rekik over 2 years ago
- Category changed from Backend User Interface to FormEngine aka TCEforms
Updated by Andreas Kienast about 2 years ago
- Status changed from New to Needs Feedback
Hello Taleb,
albeit TCA allows this configuration, this has no effect. The thing is, FormEngine renders <input type="number" ... maxlength="20">
which seems to be ignored by browsers.
Can you please check whether the following configuration works for you?
<range> <lower>-99999999999</lower> <upper>99999999999</upper> </range>
max
will be very likely ignored completely in v12 as we're refactoring crucial parts of TCA.
Updated by taieb rekik about 2 years ago
Thank you so much for the insturuction, i see also that the new type with the typo3 v12 will resolve this type of issue
Updated by Christian Kuhn 7 months ago
- Status changed from Needs Feedback to Closed
As far as I understood, this has been resolved in v12 with the introduction of type=number. I hope it's ok to close here, feel free to pick this up again in case we missed something.