The Form component includes a validation function that would be executed when the form is submitted.
- This can test business rules between form input values are valid, in addition to the default form field validations (required, min or max, etc.)
- The Error Summary component can be used within the form to display the list of errors diagnosed by the function.
A fully working (non-react) HTML example is also available on the Code tab.