Answer the question
In order to leave comments, you need to log in
Fancybox 3 breaks webform component form submission, what's the problem?
Hello!
Faced a problem out of the blue. There is a simple site on Bitrix, edition "Standard". In the product card (example: dev.altsys.ru/products/svetovye-bukvy/obemnye-svet... ) there is an OS form in the footer ( skrinshoter.ru/s/090421/3yp2i6lv ). It correctly validates the data and is sent in ajax mode (created by the webform component). But - if you first open a photo in the gallery (fancybox 3 - skrinshoter.ru/s/090421/s8XouMdh ), then something breaks in the form, the page starts to reload - skrinshoter.ru/s/090421/2JMUzBV2 .
At random, I found out that the data-fancybox="good_gal" attribute affects this. If the attribute is left empty, then the form submission does not break. But in this version, the photo cannot be flipped.
The form component is called like this:
<?$APPLICATION->IncludeComponent(
"bitrix:form.result.new",
"footer_form_new",
array(
"CACHE_TIME" => "3600",
"AJAX_MODE" => "Y",
"CACHE_TYPE" => "A",
"CHAIN_ITEM_LINK" => "",
"CHAIN_ITEM_TEXT" => "",
"EDIT_URL" => "",
"IGNORE_CUSTOM_TEMPLATE" => "Y",
"SEF_FOLDER" => "/",
"LIST_URL" => "",
"SEF_MODE" => "N",
"SUCCESS_URL" => "",
"USE_EXTENDED_ERRORS" => "Y",
"WEB_FORM_ID" => "5",
"COMPONENT_TEMPLATE" => "footer_form_new",
"VARIABLE_ALIASES" => array(
"WEB_FORM_ID" => "WEB_FORM_ID",
"RESULT_ID" => "RESULT_ID",
)
),
false
);?>
Answer the question
In order to leave comments, you need to log in
I'm sorry, I didn't have time to add a comment: I changed the Fensibox to Magnifik, everything worked flawlessly. But I never figured out why there was such a glitch with the fensibox
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question