$arANSWER = array();
$arANSWER[] = array(
"MESSAGE" => " ",
"C_SORT" => 100,
"ACTIVE" => "Y",
"FIELD_TYPE" => "text"
);
$arFields = array(
"FORM_ID" => $NEW_ID,
"ACTIVE" => "Y",
"TITLE" => "Имя",
"TITLE_TYPE" => "text",
"SID" => "NAME",
"C_SORT" => 1000,
"ADDITIONAL" => "N",
"REQUIRED" => "Y",
"IN_RESULTS_TABLE" => "Y",
"IN_EXCEL_TABLE" => "Y",
"FILTER_TITLE" => "Имя",
"RESULTS_TABLE_TITLE" => "Имя",
"arFILTER_ANSWER_TEXT" => array("text"),
"arANSWER" => $arANSWER,
);
// добавим новое поле
CFormField::Set($arFields); |