Answer the question
In order to leave comments, you need to log in
What needs to be fixed so that the modal window does not close if there is an error?
There is Bitrix, layout on bootstrap, registration in a modal window.
When you click send, the window closes and if there is an error in it, the user does not see it and does not understand what the problem is.
I'm trying to solve it with two options:
1. You need to somehow disable the closing of the window on click to send, but something data-backdrop="static" does not give anything
2. I wanted to make the $arResult["ERRORS"] array global in Bitrix, and check it, but it doesn't work to make it global. Maybe it's somehow cleverly installed here?
Who can tell?
Answer the question
In order to leave comments, you need to log in
add
in loop
<script type="text/javascript">
$(window).on('load', function () {
$('#modal_registered').modal('show');
});
</script>
Refine the layout, make a modal registration window on Ajax
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question