Answer the question
In order to leave comments, you need to log in
Checkout form, how to find out what CODE values are specified in the $arFields array?
I need to know the values of the form fields in the $arFields array, namely the value of the CODE keys. To add fields and register in init.php file.
It is not possible to display the value of the $arFields array, I add the code to the init.php file
$id = intval($_REQUEST["ID"]);
if ( CModule::IncludeModule("iblock") && !empty($id) )
{
$arSelect = array("ID", "NAME", "PREVIEW_TEXT","CODE");
$arFilter = array("IBLOCK_ID"=> 25,"SECTION_ID"=>$id);
$res = CIBlockElement::GetList(Array(), $arFilter, false, false , $arSelect);
while( $arFields = $res->fetch() )
{
echo '<pre>';
var_dump($arFields);
echo '</pre>';
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question