Open Maykonn opened 7 years ago
Suppose that I have two fields, product 1 and product2. How to avoid that the two be filled but at least one must be filled?
Something like this is possible?
[ ['product1', 'product2'], AtLeastValidator::className(), 'in' => ['product1', 'product2'], 'max' => 1 ],
@Maykonn ... waiting your answer on the PR. Thank you.
Suppose that I have two fields, product 1 and product2. How to avoid that the two be filled but at least one must be filled?
Something like this is possible?