27 $feedbackForm = new \Bitrix\UI\Form\FeedbackForm(
$request[
'id']);
29 $feedbackForm->setFormParams(
$request[
'forms']??[]);
31 $feedbackForm->setPresets(is_array(
$request[
'presets']) ?
$request[
'presets'] : []);
34 $feedbackForm->setTitle(
$request[
'title']);
39 $feedbackForm->setPortalUri(
$request[
'portalUri']);
42 if (!$feedbackForm->getFormParams() && !isset(
$request[
'defaultForm']))
47 if (!$feedbackForm->getFormParams() && isset(
$request[
'defaultForm']))
49 $feedbackForm->setFormParamsDirectly(
$request[
'defaultForm']);
53 'form' => $feedbackForm->getFormParams(),
54 'presets' => $feedbackForm->getPresets(),
55 'title' => $feedbackForm->getTitle(),
56 'portalUri' => $feedbackForm->getPortalUri(),
57 'params' => $feedbackForm->getJsObjectParams(),