addElement('text', 'name', ['label' => 'Name', 'required' => true, 'maxlength' => 255]); $this->addElement('text', 'address', ['label' => 'Address', 'required' => true, 'maxlength' => 255]); $this->addElement('phone', 'phone', [ 'label' => 'Phone Number', 'required' => true, 'maxlength' => 255, ]); return $this; } }