Project

General

Profile

Actions

Bug #97521

closed

Year allow 6 digits in 'date' field

Added by David Fontaine about 2 years ago. Updated about 1 year ago.

Status:
Rejected
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2022-04-29
Due date:
% Done:

0%

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

Description

When you put the 'date' field in a form, it allows up to 6 digits for the year. If a user accidentally enters '20222' the field takes it but when we come to send the form, we have an error. And we have to correct the date. Is it possible to limit this field to 4 digits?

We tested it on typo11 php8.1 and we have the same problem.

Actions #1

Updated by Georg Ringer about 2 years ago

Actions #2

Updated by Georg Ringer about 2 years ago

  • Status changed from New to Needs Feedback

a solution can be

properties:
          fluidAdditionalAttributes:
            min: ''
            max: '9999-12-31'
            step: 1

does that work for you?

Actions #3

Updated by Björn Jacob almost 2 years ago

  • Sprint Focus set to Remote Sprint
Actions #4

Updated by Georg Ringer about 1 year ago

  • Status changed from Needs Feedback to Rejected

closing this issue as it is not really TYPO3 related

Actions

Also available in: Atom PDF