Error Messages for Constraints #6707
Labels
acceptance criteria
used for the acceptance criteria checklist
DS
Design System feature (e.g. component)
V24.5
Description
Enable developers to specify custom error messages for field component constraints (e.g., pattern, minimum length) using the i18n. These messages should be displayed when validation is run. Additionally, these messages should also be utilized by the Vaadin Binder to provide clear and consistent feedback to users during form validation.
Use cases
As a developer
I want to specify custom error messages for field component constraints using the i18n mechanism
So that I can ensure consistent and localized feedback for users when constraints are violated, including when using Vaadin Binder
As an end user filling out a form
I want to see clear and helpful error messages when I make a mistake
So that I can understand what went wrong and how to correct it quickly
Acceptance criteria
datePicker.getI18n().setBadInputErrorMessage("Date has incorrect format")
.General criteria
asRequired
, and the error message should be provided through it. The message set on the field's i18n won't be used in this case.The text was updated successfully, but these errors were encountered: