I have a form with 2 selects. Based on the value of the first select, it updates the values of the second select using AJAX. Doing this makes the form not being valid. So, I mad
You could try to deactivate the validator:
in your Form.php
$field = $this->createElement('select', 'fieldname'); $field->setLabel('Second SELECT'); $field->setRegisterInArrayValidator(false); $this->addElement($field);
The third line will deactivate the validator and it should work.