Details
-
Bug
-
Resolution: Duplicate
-
Neutral
-
None
-
6.2.5
Description
Steps to reproduce
Create a dialog with:
optionalMail2:
label: contact.fields.optionalMail2.label
$type: textField
required: false
validators:
emailValidator:
$type: emailValidator
errorMessage: TestEmailValidator
Expected results
If required is set to false, an empty field should be allowed.
Actual results
EmailValidator always returns an error on empty fields.
Workaround
Use a custom RegexpValidator
Development notes
Checklists
Acceptance criteria
Attachments
Issue Links
- is duplicated by
-
MGNLUI-6245 Regex field validation has changed for blank or empty values
-
- Closed
-