addElement('checkbox', 'iAccept', [ 'label' => 'I accept (click box) and initials', 'decoration' => 'simple', 'uncheckedValue' => '', 'required' => true, ]); $this->getElement('iAccept')->removeDecorator('DtDdWrapper')->addDecorator('HtmlTag', [ 'tag' => 'div', 'id' => $this->getElement('iAccept')->getId() . '-element', 'class' => 'inline-block', ]); $this->addElement('text', 'initials', ['required' => true]); $this->getElement('initials')->removeDecorator('Label')->getDecorator('HtmlTag') ->setOption('tag', 'div') ->setOption('class', 'inline-block'); $this->addDisplayGroup(['iAccept', 'initials'], 'iAcceptAndInitials', [ 'decorators' => [ 'FormElements', ['DtDdWrapper', [ 'ddAttribs' => ['class' => 'row-inline-blocks'], ]], ], ]); return $this; } public function addButtons() { return $this->addStepButtons(); } }