Form validation: Submit or Blur #640
iOvergaard
started this conversation in
Ideas
Replies: 1 comment
-
Something between the blur or submit could be only to show field as invalid, when a field has been filled with a valid (or the form in dirty as known from Angular). And where form submission validates all fields. Then it won't show validating errors when just tabbing through the form fields with keyboard, but first when user actually has interacted with the field. e.g. something like this: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Based on the issue posted by @bjarnef and the comment originally posted by @iOvergaard in umbraco/Umbraco-CMS#15074 (comment), we should have a discussion of when to do validation: blur or submit.
From a holistic perspective, it would be best to make it configurable either on the uui-form or uui-input, or even better on both. Many UI component libraries have implemented it this way to allow for more refined validation based on actual use cases. For instance, on the V13 login screen it makes sense to do on submit, since we don't have very refined server validation. But when implementing validation in Bellissima, we'll potentially have field-by-field validation.
Beta Was this translation helpful? Give feedback.
All reactions