I
I
issssrt2020-09-04 11:07:19
1C-Bitrix
issssrt, 2020-09-04 11:07:19

How to display the result of a form response?

I use this code

<?php
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");

CModule::IncludeModule("form");

$answer_id = 84; // ID ответа
$rsAnswer = CFormAnswer::GetByID($answer_id);
$arAnswer = $rsAnswer->Fetch();
echo "<pre>"; print_r($arAnswer); echo "</pre";

?>

But it doesn't output anything. I need to get the result of the form (name, phone) and then send it to the external system in json. That is why I connected only the core without forming a page with a site template

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question