I have a condition that a certain field is required if the value is either '1', '2', '3', '4'. How can you do this? Pls check my code below
travelDate: yup.string().when('planeAvailable', {
is: '1' || '2' || '3' || '4',
then: yup.string().required('Choose Date'),
}),