Blazor MultiSelect Dropdown Example - Form Validation
This sample is used to validate form using the Data Annotation. Type the value in the input element or choose from the multiselect popup. If the input value is valid, then the given input will be ready to submit. Otherwise, an error message will be shown until you enter or choose the valid value.
The form enables the validation with data annotation attributes by clicking on the submit externally. All rules are validated by the DataAnnotationsValidator.
The above game field is configured with the following rule.
| Field | Rule |
|---|---|
| Required | The field must have a valid value. |