'y'); protected function _initElements() { $this->addElement('text', 'name', array('label' => 'Client Name', 'required' => true, 'maxlength' => '50')); $this->getElement('name')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('text', 'company', array('label' => 'Company Name', 'required' => true, 'maxlength' => 50)); $this->getElement('company')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('text', 'jobTitle', array('label' => 'Job Title', 'maxlength' => 50)); $this->getElement('jobTitle')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('textarea', 'testimonial', array('label' => 'Testimonial', 'required' => true,)); $this->addElement('checkbox', 'show', array('label' => 'Show on user end', 'decoration' => 'simple')); return $this; } }