Project

General

Profile

Actions

Bug #94563

closed

Number Input Validator

Added by Lennart Suwe almost 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2021-07-15
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Remote Sprint

Description

The default validator for a number input field does not check if the value is an actual number.

Behavior:
Some browsers (eg. Firefox) allow users to enter letters in an number input field.
When the retuned form value contains letters, the whole value gets striped and no error is thrown.
If you send yourself the result in an e-mail the number input value is empty.

'65' -> '65'
'45g' -> '' and no error

Expected behavior:
If the number input value does not contain a valid number the validator should throw it's errormessage.

Actions

Also available in: Atom PDF