A
A
Alexander2019-08-26 18:26:18
1C-Bitrix
Alexander, 2019-08-26 18:26:18

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

2 answer(s)
A
Alexander, 2019-09-18
@kikher

add in loop

<script type="text/javascript">
            $(window).on('load', function () {
                $('#modal_registered').modal('show');
            });
        </script>

It's very simple if you know)

Y
Yaroslav Alexandrov, 2019-08-27
@alexyarik

Refine the layout, make a modal registration window on Ajax

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question