## SmartPasteButton Validation

While the SmartPasteButton handles most AI service errors internally, you can use the [`OnRequestStart`](https://www.telerik.com/blazor-ui/documentation/components/smartpastebutton/events#onrequeststart) event to validate the input content and the [`OnRequestStop`](https://www.telerik.com/blazor-ui/documentation/components/smartpastebutton/events#onrequeststop) event to handle cancellation scenarios.

> caption Example demonstrating form validation within the OnRequestStart event

<demo metaUrl="client/smartpastebutton/validation/example-1/" height="520"></demo>

## See Also

* [SmartPasteButton Live Validation Demo](https://demos.telerik.com/blazor-ui/smartpastebutton/validation)
* [SmartPasteButton Overview](https://www.telerik.com/blazor-ui/documentation/components/smartpastebutton/overview)
* [SmartPasteButton Events](https://www.telerik.com/blazor-ui/documentation/components/smartpastebutton/events)
