CheckBoxList contains rule
Notice: This thread is very old.
- hejdav
- Member | 50
Hey,
having a CheckBoxList, like []horse []dog []mouse
and text input
color
which I want required in case when the “dog” checkbox is
checked. So in case [x]horse [x]dog []mouse
fields are checked, the
color
is required. It could be like
<?php
$colorControl
->addConditionOn($animalsControl, Form::CONTAINS, 'dog')
->setRequired();
?>
But it appears like there's no rule that fits. EQUALS
does not
make the job.
Has anybody dealt similar problem?
Thank yo