_getData('id')); $nameUniqueValidator->setMessage('Company Name must be unique', Qs_Validate_Unique::NOT_UNIQUE); $this->addElement( 'text', 'name', ['required' => true, 'label' => 'Name', 'validators' => [$nameUniqueValidator]] ) ->addElement('text', 'address', ['required' => true, 'label' => 'Address 1']) ->addElement('text', 'address2', ['label' => 'Address 2']) ->addElement('text', 'city', ['required' => true, 'label' => 'City']) ->addElement( 'select', 'state', [ 'required' => true, 'label' => 'State', 'multiOptions' => ['' => 'Select One'] + $table->get4Select(['id', 'title']), ] ) ->addElement('zip', 'zip', ['required' => true, 'label' => 'Zip']) ->addElement('phone', 'phone', ['label' => 'Phone Number']) ->addElement('phone', 'fax', ['label' => 'Fax Number']) ->addElement('url', 'websiteUrl', ['label' => 'Website']) ; return parent::_initElements(); } }