Zend: Form validation: value was not found in the haystack error

后端 未结 4 2018
情歌与酒
情歌与酒 2021-02-13 03:45

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

4条回答
  •  一生所求
    2021-02-13 03:56

    You can also disable the InArray validator using 'disable_inarray_validator' => true:

    For example:

        $this->add( array(
            'name'     => 'progressStatus',
            'type'     => 'DoctrineModule\Form\Element\ObjectSelect',
            'options' => array(
                'disable_inarray_validator' => true,
            ),
    
        )); 
    

提交回复
热议问题