T
TanStack2y ago
manual-pink

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
modern-teal
modern-teal2y ago
I'm working on linked validation right now actually. This will occur before 1.x
genetic-orange
genetic-orange2y ago
@crutchcorn is the only option to run a form.validateAllFields() ?
modern-teal
modern-teal2y ago
Right now we don't have any API that works in the same way you're asking for
wise-white
wise-white2y ago
@crutchcorn the linked validation you are working on will allow us to solve this use case https://discord.com/channels/719702312431386674/1218652904559345664 ? Thanks

Did you find this page helpful?