The MaskedTextBox supports a native KendoReact implementation of HTML5 form validation.
The forms supports enables you to validate input values and prevent the submission of forms which are in an invalid state.
- Setting the validation requirements
- Setting custom validation messages
- Overriding the validity state
- Disabling the visual representation of the validity state
The MaskedTextBox provides an option for setting validation requirements. The
required property defines the validity state of the component and allows a successful form submission.
You can implement custom error messages which will be displayed when the MaskedTextBox is in an invalid state and the user tries to submit the form. To render a custom validation message, set the
The MaskedTextBox enables you to set its validity state by utilizing its props. Setting the validity state allows for the implementation of complex validation scenarios that are based on multiple sources. To override the current validity state and apply the corresponding styles, use the
By default, to achieve a visual representation of its invalid state, the MaskedTextBox applies the
k-state-invalid class name to the wrapping component. To disable the utilization of
k-state-invalid, set the
validityStyles property to