Answer the question
In order to leave comments, you need to log in
How to display the results of form processing in bitrix without reloading events?
The site has a form that opens in a popup and, when submitted, displays the response (or errors) in the same popup without reloading the page and, apparently, without ajax. I created a new form in the admin panel with the same fields and handlers, it works exactly the same (it gives errors, saves the results to its folder in the admin panel), BUT the response or the form with errors is displayed with a page reload and without a header and footer (that is, it displays the same as before, but earlier it was inserted into the popup). Forms are made via form.result.new. Any crutches from the previous developer are possible, tk. in the code there are checks that id<15, and the new form is just with id=15. Where at least to dig, where can an indication lie, open at a new address or right there, depending on the id?
Answer the question
In order to leave comments, you need to log in
Just here the first form works on ajax, and your second without it - that's why the page reloads and the header with the footer is not displayed. You have to look at the code.
Probably a little too late. I had a problem with scripts. I used magnificPopup and it caused the same issue. Fixed with a crutch
$(document).ready(function(){
setTimeout(function(){
$('.main-popup-form-modal__error').html($('.errortext').html());
$('.main-popup-form-modal__error').addClass('active');
}, 100)
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question