getDoc()->getAuth()->isLoggedIn()) { $this->addElement('text', 'submitterName', ['label' => 'Your Name', 'required' => true]); $this->addElement('phone', 'submitterPhone', ['label' => 'Your Phone']); $this->addElement('email', 'submitterEmail', ['label' => 'Your Email Address', 'required' => true]); } $this->_addVisibilityDateRange(); return $this; } protected function _initButtons() { parent::_initButtons(); $this->getElement('btnSubmit')->setLabel('Submit'); return $this; } }