removeByName('Default'); return $fields; } public function getFormField() { $field = CountryDropdownField::create($this->Name, $this->EscapedTitle); $this->doUpdateFormField($field); return $field; } public function getValueFromData($data) { if(isset($data[$this->Name])) { $source = $this->getFormField()->getSource(); return $source[$data[$this->Name]]; } } public function getIcon() { return USERFORMS_DIR . '/images/editabledropdown.png'; } }