'Administrator', ]; protected function _bindFormFields(Qs_Form $form) { $form->addElement('hidden', 'action', ['value' => 'insert']); $jobTitles = [ ['id' => 1, 'title' => 'Administrator'], ['id' => 2, 'title' => 'Manager'], ['id' => 3, 'title' => 'Sales'], ]; $options = ['' => 'Select One']; foreach ($jobTitles as $jobTitle) { $options[$jobTitle['title']] = new SelectOption(['label' => $jobTitle['title'], 'data-id' => $jobTitle['id']]); } $form->addElement('selectOther', 'jobTitle', ['label' => 'Job Title', 'multiOptions' => $options]); return $this; } }