Skip to content
Discussion options

You must be logged in to vote

Hi @WataruNishimura,

The validate intent supports both form and field level validation. When you call form.validate(), it marks every field in the form touched. So any errors in the result will be shown directly. This is similar to clicking on an submit button, except that no submission will be made. If you call form.validate(name) instead, it marks only that field as touched, and only touched fields with errors would be shown. This is also what Conform uses internally when you have shouldValidate or shouldRevalidate configured.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WataruNishimura
Comment options

@edmundhung
Comment options

Answer selected by WataruNishimura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants