I am reactjs function, need to add validation to the input value <Form.Group size="sm" as={Row} controlId="formBasicEmail"> <Form.Control placeholder="Enter Amount"
value={hospitalId
我想要的要么是IT部门的所有联系人都被填满了,要么就是没有一个被填满。因此,例如,如果在IT head contact object name中,“姓氏”字段被填充,并且未填写电话号码,则会显示错误消息:“您应该填写IT头联系人中的所有字段,或者没有任何字段”。如果IT头联系人中的所有字段都已填写或未填写,则不会显示错误消息。可以用yup实现吗?; admin: Co
我使用Yup对Formik进行验证模式。表单字段名包含句点(.)特别的角色。它需要包含这个特殊的字符,因为这个名称是由操作引用的。字段名类似于"traits.name.first“。我将验证模式定义为"traits.name.first": yup.string().required("Please enter the first name"