-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom validation attachment points #15
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently validation errors are always attached to the generated name of the associated field. It would be handy to allow for validations for a given field to be attached to a different identifier at a field level, and possibly also at a validation level. For example, say I have a hidden field, but I want to display its validation associated with a visible analogue to the field. In this case, I would need to do some client-side scripting to take the error attached to the hidden field and put it with the visible field. Instead, we could imagine:
The text was updated successfully, but these errors were encountered: