diff --git a/aspnetcore/blazor/forms-validation.md b/aspnetcore/blazor/forms-validation.md index 1d86836b9e..31fd12a914 100644 --- a/aspnetcore/blazor/forms-validation.md +++ b/aspnetcore/blazor/forms-validation.md @@ -48,9 +48,9 @@ A form is defined using the Blazor framework's component is rendered where the `` element appears. -* The model is created in the component's `@code` block and held in a private field (`exampleModel`). The field is assigned to the attribute of the `` element. +* The model is created in the component's `@code` block and held in a private field (`exampleModel`). The field is assigned to 's attribute (`Model`) of the `` element. * The component (`id="name"`) is an input component for editing string values. The `@bind-Value` directive attribute binds the `exampleModel.Name` model property to the component's property. -* An event handler (`HandleValidSubmit`) is assigned to attribute of the `` element. The handler is called if the form passes validation. +* The `HandleValidSubmit` method is assigned to . The handler is called if the form passes validation. * The data annotations validator ( component†) attaches validation support using data annotations: * If the `` form field is left blank when the **`Submit`** button is selected, an error appears in the validation summary ( component‡) ("`The Name field is required.`") and `HandleValidSubmit` is **not** called. * If the `` form field contains more than ten characters when the **`Submit`** button is selected, an error appears in the validation summary ("`Name is too long.`") and `HandleValidSubmit` is **not** called. @@ -128,11 +128,11 @@ Assign **either** an provides the following events for handling form submission: +The provides the following callbacks for handling form submission: * Use to assign an event handler to run when a form with valid fields is submitted. * Use to assign an event handler to run when a form with invalid fields is submitted. -* Use to assign an event handler to run regardless of the form fields' validation status. The form is validated by calling in the event handler method. If `true` is returned, the form is valid. +* Use to assign an event handler to run regardless of the form fields' validation status. The form is validated by calling in the event handler method. If returns `true`, the form is valid. ## Built-in form components