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