Replies: 2 comments
-
Your problem just like issue which i created, and the antd support the field validation because they use rule config as a array not a object in RHF, with the validateTrigger, you can validate by field in different mode, not just the whole form validation mode. |
Beta Was this translation helpful? Give feedback.
0 replies
-
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
Uh oh!
There was an error while loading. Please reload this page.
-
There is currently field level validation, but sometimes one might want certain errors to only show up on submit.
Is there a possibility of segmenting validation rules by a mode, similar to the mode in
useForm
?One use case that we would use this for could be something like a verifiable field (with multiple inputs), where we do not want to show an error (since user is still performing a group action) until the form is attempting to submit.
For example, the below input should be a field level validation and trigger normally (

onChange
,onBlur
,onTouch
, whatever is set onuseForm
)However, the below input should not error when user is pending an action that they are in the midst of for better UX:

It would help if there is a way to only trigger certain validations specifically on a different mode, such as onSubmit.
Beta Was this translation helpful? Give feedback.
All reactions