Enable the submit button based on form validation. Works with text inputs, selects, checkboxes and radio buttons. Return false, if the element is empty (text input) or unchecked (radio/checkbox) or if nothing is selected (select). Validate the form in the context's OnFieldChanged callback to enable and disable the submit button. Unhook the event handler in the Dispose method.
To enable and disable the submit button based on form validation: Use the form's EditContext to assign the model when the component is initialized.