inputs with yup + formik
i have 4 select inputs in my form
i want to make sure at least one of the selects input has a value before i pass validation for submittion
anyone know to check this using yup?, i have looked around on google, cant really find anything i understand
i want just one the selects to at least have a value out of any of the 4
i don't understand the requirement.. you want to run validations only if 1 select has a value?
the requirments is, at least one input should have a value if all is empty, the submission should fail and validation throws an error but if one out of the four has a value validation passed all 4 should not just be empty when one has a value then the other 3 can be notRequired
Обсуждают сегодня