react-final-form icon indicating copy to clipboard operation
react-final-form copied to clipboard

Validate on touch or submit

Open ErikParso opened this issue 4 years ago • 1 comments

I want to show validation errors only after when form is touched or submitted. What is the standard way to manage this?

Currently I have this condition to render fields validation error.

invalid && (field.touched || form.submitSuccess || form.submitError)

Is this correct or is there a better way? Formik has validateOnRender property for example.

Thanks

ErikParso avatar Oct 27 '21 07:10 ErikParso

https://rusty-foal.github.io/derrick6/

luigi-old727 avatar Oct 20 '25 18:10 luigi-old727