Validate specific field on change
I have 2 date components, and on change for either, I would like to trigger validation on the other date component. I don’t want to trigger a full form validation. I have tried useField and the validate function with change and the value, but it doesn’t seem to trigger the validation for that field. Is this possible?
4 Replies
optimistic-gold•2y ago
I'm working on linked validation right now actually. This will occur before 1.x
eastern-cyan•2y ago
@crutchcorn is the only option to run a form.validateAllFields() ?
optimistic-gold•2y ago
Right now we don't have any API that works in the same way you're asking for
variable-lime•2y ago
@crutchcorn the linked validation you are working on will allow us to solve this use case https://discord.com/channels/719702312431386674/1218652904559345664 ?
Thanks