protected function addNextButton()
    {
        parent::addNextButton();

        if (! (isset($this->formData['survey']) && $this->formData['survey'])) {
            $this->_nextButton->setAttrib('disabled', 'disabled');
        }
    }
protected function addNextButton()
    {
        parent::addNextButton();

        if (! (isset($this->formData['survey']) && $this->formData['survey'])) {
            $this->_nextButton->setAttrib('disabled', 'disabled');
        }
    }
protected function addNextButton ( ) { parent :: addNextButton ( ) ; if ( ! ( isset ( $ this -> formData [ 'survey' ] ) && $ this -> formData [ 'survey' ] ) ) { $ this -> _nextButton -> setAttrib ( 'disabled' , 'disabled' ) ; } }
Add the next button
Add the next button