T
T
tyoma_koder2021-12-24 15:49:31
1C-Bitrix
tyoma_koder, 2021-12-24 15:49:31

Why is the message about sending the 1C Bitrix form not being inserted?

There are 2 forms in popups on the page, both are ajax, but one of them immediately shows a message about submitting the form when submitting it, and the other one only when the popup is reopened.
The array with parameters in $APPLICATION->IncludeComponent is the same for both forms:

"COMPONENT_TEMPLATE" => ".default",
            "WEB_FORM_ID" => "7",	// ID веб-формы
            "IGNORE_CUSTOM_TEMPLATE" => "N",	// Игнорировать свой шаблон
            "USE_EXTENDED_ERRORS" => "N",	// Использовать расширенный вывод сообщений об ошибках
            "SEF_MODE" => "N",	// Включить поддержку ЧПУ
            "CACHE_TYPE" => "A",	// Тип кеширования
            "CACHE_TIME" => "3600",	// Время кеширования (сек.)
            "LIST_URL" => "",	// Страница со списком результатов
            "EDIT_URL" => "",	// Страница редактирования результата
            "CHAIN_ITEM_TEXT" => "",	// Название дополнительного пункта в навигационной цепочке
            "CHAIN_ITEM_LINK" => "",	// Ссылка на дополнительном пункте в навигационной цепочке
            "AJAX_MODE" => "Y",
            "AJAX_OPTION_ADDITIONAL" => "",
            "AJAX_OPTION_HISTORY" => "N",
            "AJAX_OPTION_JUMP" => "N",
            "AJAX_OPTION_STYLE" => "Y",
            "EDIT_ADDITIONAL" => "N",
            "EDIT_STATUS" => "Y",
            "SHOW_ADDITIONAL" => "N",
            "SHOW_ANSWER_VALUE" => "N",
            "SHOW_EDIT_PAGE" => "N",
            "SHOW_LIST_PAGE" => "N",
            "SHOW_STATUS" => "Y",
            "SHOW_VIEW_PAGE" => "N",
            "START_PAGE" => "new",
            "VARIABLE_ALIASES" => array("action"=>"action",),

the form handler is the same (link to the current page)

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