The forms supports enables you to validate switch values and prevent the submission of forms which are in an invalid state.
- Support for KendoReact Form and Setting Custom Behavior
- Setting Validation Requirements
- Setting Custom Validation Messages
The KendoReact Form component integrates with all KendoReact components.
You can display error messages and fully customize the behavior of the rendered component by using the additional properties of the Field component.
The following example demonstrates how to render a required custom switch.
The Switch supports props for setting basic validation requirements. For example, the
required property which enables the successful form submission.
You can implement custom error messages which will be displayed if the Switch is not turned on and the user tries to submit the form. To render a custom validation message, set the