_dfRelations = $this->getConfigArray('dfRelations'); return parent::init(); } protected function _initElements() { $this->addElement('textarea', 'question', ['label' => 'Question', 'required' => true]); $this->addElement('checkbox', 'requiresExplanation', [ 'label' => 'Requires Explanation', 'value' => 'n', 'decoration' => 'simple', ]); $this->addElement('textarea', 'explanationDirection', [ 'label' => 'Explanation Direction', 'required' => $this->isElementRequired('explanationDirection'), ]); $this->addElement('checkbox', 'enabled', ['label' => 'Show on user end', 'value' => 'y', 'decoration' => 'simple']); return $this; } }