<?$sss = "bottom"?>
<?$APPLICATION->IncludeComponent(
"bitrix:menu",
$sss,
array(
"COMPONENT_TEMPLATE" => "top",
"ROOT_MENU_TYPE" => "top",
"MENU_CACHE_TYPE" => "Y",
"MENU_CACHE_TIME" => "3600000",
"MENU_CACHE_USE_GROUPS" => "Y",
"MENU_CACHE_GET_VARS" => array(
),
"MAX_LEVEL" => "1",
"CHILD_MENU_TYPE" => "left",
"USE_EXT" => "N",
"DELAY" => "N",
"ALLOW_MULTI_SELECT" => "N"
),
false
);?>
if ($FIELD_NAME == "UF_TEST") {
$sTemplate = "'custom-select'";
}
if ($FIELD_NAME == "UF_TEST") {
$sTemplate = "'custom-select'";
}
<?$APPLICATION->IncludeComponent(
"bitrix:system.field.edit",
".default", // именно в ковычках
array("bVarsFromForm" => $arResult["bVarsFromForm"], "arUserField" => $arUserField), null, array("HIDE_ICONS"=>"Y"));?>
Вот так я вызываю модальное окно.