Validation message shown when completing Text element with YYYY-MM-DD validator

Found in

EPiServer.Forms 4.5.0

Created

Apr 19 2017

Updated

Jun 23 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 form that contains a Text element with a YYYY-MM-DD validator is added to page 1.

Steps to reproduce
1. Open page1 in view mode.
2. Enter "3000-08-12" into a text field.
3. Submit the form.

Expected:
Form is submitted successfully

Actual:
"Enter a date in the YYYY-MM-DD format." message is shown.

Fixed: Previously, date validators only allowed the entry of a date value between 1900-01-01 and 2099-12-31.
Now, the range is between 1900-01-01 and 9999-12-31 and applies to all existing date validators: Date (DD/MM/YYYY), Date (MM/DD/YYYY) and Date (YYYY-MM-DD)

Comments