Validate on touch or submit
Author: ErikParsoCreated Oct 27, 2021Updated Oct 20, 2025
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
Source: final-form/react-final-form