Still relatively new to Formik. I'm using FieldArray to render different types of input fields. An example payload would be an array of objects like below. Filter_type would determine what kind of input field (1 =default, 2 = email, 3 = number...). (Number, email, date, regular text). How would I create a Yup schema to validate the value type for the different types inputs?
Hello,
Still relatively new to Formik. I'm using FieldArray to render different types of input fields. An example payload would be an array of objects like below. Filter_type would determine what kind of input field (1 =default, 2 = email, 3 = number...). (Number, email, date, regular text). How would I create a Yup schema to validate the value type for the different types inputs?
Thanks a lot!