Is there a way to disable notInArray Validator in Zend Framework 2. All the info on the internet shows how to disable the notInArray Validator in Zend Framework 1, for example i
I had the same problem and what i did is populate the element before validate it, for example:
$clientForm->get('city')->setValueOptions($options); $clientForm->setData($post); if ($clientForm->isValid()) { // } else { // }
This don't disable notInArray valitador but you can trick it.