- // when custom data is included in this page
- if (!empty($_POST['hidden_custom'])) {
- $this->set('type', 'Survey');
- $this->set('entityId', $this->_surveyId);
- CRM_Custom_Form_CustomData::preProcess($this, NULL, NULL, 1, 'Survey', $this->_surveyId);
- CRM_Custom_Form_CustomData::buildQuickForm($this);
- CRM_Custom_Form_CustomData::setDefaultValues($this);
- }