code: public function setFieldValue($field, $value)
      {
          $type = $this->getFieldFormType($field);
          switch ($type) {
              case 'select':
                  return $this->selectOptionForm($field, $value);
              case 'checkbox':
              case 'checkboxGroup':
                  return $this->checkOptionForm($field);
              default:
                  return $this->fillFieldForm($field, $value);
          }
      }
docs: Sets a form field value based on field type
  @param $field
  @param $value
  @return mixed