New to Kendo UI for Angular? Start a free 30-day trial

Validating Values

Updated on Sep 30, 2026

The Kendo UI for Angular Barcode package provides the createBarcodeValidator function for Angular Reactive Forms. The validator checks whether a value is valid for the selected Barcode type.

Pass a BarcodeType to validate the value. You can also pass the optional barcode size when the selected type requires it. The validator accepts string and numeric values, returns null for empty values, and returns a barcode error with the validation message, value, and type when validation fails.

The following example demonstrates the Barcode validator in action.

Example
View Source
Loading ...
In this article
Suggested Links
Not finding the help you need?
Contact Support