[6.x] Error indicator for grid/replicator/bard based on id #11992
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR fixes:
Fixing these issues was previously attempted here: #11341
When receiving errors for validation it is nice to know in which row/set the validation error occurs. This PR adds this functionality by doing the following:
Additionally, I noticed that the nested field errors are also dependent upon the row/set index. This means that if the row/set is deleted or moved then the validation errors do not "follow" the field and can jump to the wrong row/set if it contains similar fields. I resolved this by caching the field errors on page load and only updating them when the errors update not when the field prefix (ie. row/set index) is updated.
Please let me know if there's anything that is unclear about this; sorry for the wordy explanation.
Here is what it looks like:
