/** * Create the field for display in CMS. * * (non-PHPdoc) * @see FormField::Field() * @return String */ function Field() { $this->stockLevelField->setForm($this->form); if ($this->value == -1) { $this->stockLevelField->addExtraClass('HiddenStock'); } return $this->stockLevelField->SmallFieldHolder(); }