Validation message is shown when enter to Text element that has YYYY-MM-DD validator

Found in

EPiServer.Forms 4.5.0

Created

Apr 19 2017

Updated

Jun 19 2017

Fixed in

EPiServer.Forms 4.6.0

Area

Validation for elements

State

Closed, Fixed and tested

Voting

Affected? You can raise the priority of a bug by voting for it. By doing so, you will be helping our developers to choose which bug to fix next.

Voting is disabled for closed bugs.

0

Description

Precondition: A form1 (contains Text element with YYYY-MM-DD validator) is added to page1
1. Open page1 in view mode
2. Enter "3000-08-12" to the text field
3. Submit form
Expected: Form is submitted successfully
Actual: "Enter a date in the YYYY-MM-DD format." message is shown

Fixed: Currently, date validators only allow entering a date value between 1900-01-01 and 2099-12-31
Now the range is between 1900-01-01 and 9999-12-31 and apply for all existed date validators: Date (DD/MM/YYYY), Date (MM/DD/YYYY) and Date (YYYY-MM-DD)

Comments