T
TanStack13mo ago
absent-sapphire

Is it possible to validate all the fields in a fieldset?

In my usecase in an Astro/React app one fieldset is shown at a time with next and prev buttons. Before the user moves to the next fieldset I want to validate the current screen.
1 Reply
absent-sapphire
absent-sapphireOP13mo ago
How I solved this was to use validateField and I have the fields in an array so could loop over them and get the validation result back for each.

Did you find this page helpful?