The forms supports enables you to validate switch values and prevent the submission of forms which are in an invalid state.
- Support for Kendo UI for Vue Native Form and Setting Custom Behavior
- Setting Validation Requirements
- Setting Custom Validation Messages
The Kendo UI for Vue Native Form component integrates with all Kendo UI for Vue Native 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