Answer the question
In order to leave comments, you need to log in
Bitrix: AJAX feedback form, why is it not sent to fancybox3?
Fancybox3 is connected.
Calling a modal window with content loading:
<a data-fancybox data-type="ajax" data-src="<?=SITE_DIR?>ajax/modal/appointmentModal.php" href="javascript:;" class="btnMain fill">форма обратной связи</a>
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php");
$APPLICATION->IncludeComponent(
"bitrix:main.feedback",
"appointment",
array(
"COMPONENT_TEMPLATE" => "feedback",
"USE_CAPTCHA" => "N",
"OK_TEXT" => "Спасибо, ваше сообщение принято.",
"EMAIL_TO" => "[email protected]",
"REQUIRED_FIELDS" => array(
0 => "TELL",
1 => "ASSENT",
),
"EVENT_MESSAGE_ID" => array(
),
"AJAX_MODE" => "Y",
"AJAX_OPTION_SHADOW" => "N",
"AJAX_OPTION_JUMP" => "N",
"AJAX_OPTION_STYLE" => "Y",
"AJAX_OPTION_HISTORY" => "N"
),
false
);
require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php");
Uncaught TypeError: Cannot read property 'ajax' of undefined
at appointmentModal.php?fancybox=true:3
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