formik and yup issue

guys i have a question, i am on a page, to collect passengers data, there's a form with the following inputs title, first name, last name, date of birth, mobile and email, the first passenger is the lead passenger, email and number is required for them, for others there's a checkbook to mark the passenger as co ordinator to be contacted for any further enquiries, my question is how we can handle this all using formik and yup, cause one form will be looped based on the passengers count i tried implementing it, but it didn't worked for all, it only validated on the last passenger form
1 Reply
curator
curatorOP17mo ago
need help with formik validation
Want results from more Discord servers?
Add your server