more finegrained control regarding errored fields for user and developer #1188
bigmistqke
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
At the moment validation-errors are only shown when the post is submitted during that visit. This is an acceptable pattern in the case of a small collection in which you have a clear overview of all the fields, but can become very unergonomic when working with bigger collections, for example a big collection existing out of multiple nested arrays combined with tabs.
Which one is it? To try to find your errored field only after you submitted can become a real horror-story: at the moment there is no other solution then to click your way through the complete collection.
I propose two possible enhancements to payload to address this issue:
"errorShown": "allways" | "after first blur" | "after submit"
{message: "your error message", errorShown: "after first blur"}
you get control over when the validation-error is shown.errored fields
-bar the functionality to focus to the errored fields, one by one.when you click the error-bar, the document would be scrolled to the errored field, if it is in a tab that is not visible, tab it would open this tab. If you click the error-bar again it would focus to the next errored field, etcetera. The error-bar would only countdown and dissapear once all the errored fields are solved.
Beta Was this translation helpful? Give feedback.
All reactions