# Forms Support

The TimePicker supports a native Kendo UI for Vue implementation of [HTML5 form validation](https://developer.mozilla.org/en-US/docs/Learn/HTML/Forms/Form_validation).

The forms supports enables you to validate input values and prevent the submission of forms which are in an invalid state.

## Functionality and Features

* [Setting minimum validation requirements](https://www.telerik.com/kendo-vue-ui/components/dateinputs/timepicker/forms#setting-validation-requirements)
* [Setting custom validation messages](https://www.telerik.com/kendo-vue-ui/components/dateinputs/timepicker/forms#setting-custom-validation-messages)
* [Overriding the validity state](https://www.telerik.com/kendo-vue-ui/components/dateinputs/timepicker/forms#enforcing-the-validity-state)
* [Disabling the visual representation of the validity state](https://www.telerik.com/kendo-vue-ui/components/dateinputs/timepicker/forms#disabling-the-validation-styling)

### Setting Validation Requirements

The TimePicker supports props for setting basic validation requirements—for example, the minimum and maximum time. The [`min`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#min), [`max`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#max), and [`required`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#required) properties enable the user to pre-define minimum requirements which define the validity state of the component and allow a successful form submission.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/dateinputs/timepicker/forms/basic/source.txt)

### Setting Custom Validation Messages

You can implement custom error messages which will be displayed when the TimePicker is in an invalid state and the user tries to submit the form. To render a custom validation message, set the [`validationMessage`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#validationmessage) prop.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/dateinputs/timepicker/forms/custom-message/source.txt)

### Enforcing the Validity State

The TimePicker 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 [`valid`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#valid) prop.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/dateinputs/timepicker/forms/override/source.txt)

### Disabling the Validation Styling

By default, to achieve a visual representation of its invalid state, the TimePicker applies the `k-invalid` class name to the wrapping component. To disable the utilization of `k-invalid`, set the [`validityStyles`](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops#validitystyles) property to `false`.

[Demo Source](https://demos.telerik.com/kendo-vue-ui/dateinputs/timepicker/forms/disable-styles/source.txt)

## Suggested Links

* [API Reference of the TimePicker Props](https://www.telerik.com/kendo-vue-ui/components/dateinputs/api/timepickerprops)
