Conditional form field validation based on other form fields

前端 未结 0 1459
北恋
北恋 2021-01-21 20:45

I have a form field which can either accept a mobile number or an email. How can i validate either of these fields based on values entered into the field using yup.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题