title: Yup validation with two fields related
body: <p>I'm using formik for form management in reactjs, i have a question on validation with yup. </p>
  
  <p>I have two fields, ones is a select control to select the country, and the other one is a zipcode.</p>
  
  <p>In the country array we have the regex to validate the zipcode, and the idea is to validate the entered zipcode using the regex of the currently selected country, someone can give a clue on how to do this.</p>