P17
This form has been designed such that each field has three states: valid (green), invalid (red), and unvalidated (blue).
- On page load, all fields are in the unvalidated state.
- Clicking Quick fill then Submit will populate each field with valid data and set them all too unvalidated.
- Clicking Reset will remove the value from each field and set them all too unvalidated.
- Clicking Unvalidate will set all fields to unvalidated without changing field values.
- Clicking Submit will run formatting and validation. Fields with errors will be set to the error state while valid fields the valid state.
- After a failed submission, when focusing on or modifying a field it reverts to the unvalidated state to indicate the input has been touched. This allows the user to see which errors they've corrected and which remain.