Blazor AutoComplete Example - Form Validation

AutoComplete / Validation

This example demonstrates how to use AutoComplete inside EditForm and validate using Data Annotations. Click Submit button to validate the Form.

Loading Syncfusion Blazor Server Demos…

In this demo, EditForm validates all data annotation rules using DataAnnotationsValidator. Type or select the value from the suggestion list and if the value is valid, then the given input will be ready to submit. Otherwise, an error message will be shown until you select the valid value.

In this demo, the field mapped to the AutoComplete Value is configured with the following rule.

Field Rule
Required The field must have a valid value.
Transform your Blazor web apps today with Syncfusion® Blazor components
100+ high-performance and responsive UI components
Dedicated support
Hassle-free licensing
TRY IT FOR FREE