jaredpalmer/formik

Is it possible to have a common general/default validation for all fields?

Open

#2 340 ouverte le 4 mars 2020

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)TypeScript (34 255 stars) (2 801 forks)batch import
help wanted

Description

Can we have a common validation that every field validates with. This should work even in case of nested objects.

Eg: Object is as follows: { field1: "", field2: { field2A: [] field2B: "" }, field3: {[ field3Ai: [] field3Bi: "" ], [ field3Aii: [] field3Bii: "" ]} }

Guide contributeur