protected function _postBind() { parent::_postBind(); $this->getElement('plainText')->setType(FormElement::TEXTAREA); $this->getElement('htmlContent')->setType(FormElement::TEXTAREA); $this->getElement('campaignId')->setType(FormElement::NONE); }
protected function _postBind() { if ($this->_mapper->id()) { $this->getElement("reference")->addAttribute("disabled", "disabled"); } $this->getElement("signature")->setType(FormElement::TEXTAREA); $return = parent::_postBind(); $this->getElement("submit")->addAttribute("data-loading-text", "Submitting Contact"); return $return; }
protected function _postBind() { $this->getElement("active")->setLabelPosition(Form::LABEL_NONE); $this->getElement('dataSourceOptions')->setType(FormElement::NONE); $this->getElement('processors')->setType(FormElement::NONE); $this->getElement('availableLanguages')->setType(FormElement::NONE); $this->getElement('lastSent')->setType(FormElement::NONE); $this->getElement('sortOrder')->setType(FormElement::NONE); if ($this->_mapper->id()) { $this->getElement("reference")->addAttribute("disabled", "disabled"); } $return = parent::_postBind(); $this->getElement("submit")->addAttribute("data-loading-text", "Submitting Campaign"); return $return; }