Answer the question
In order to leave comments, you need to log in
How to add another modal window in BITRIX?
There is a page with tariff plans, a modal window appears on the connect
button with a form for filling out the application form, the modal window is located in footer.php
<div class="modal fade" id="modal-feedback" tabindex="-1" role="dialog" aria-labelledby="modal-menulabel">
<div class="modal-dialog" role="document">
<div class="container-xxs">
<div class="box2 bg-fff main-block">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
<div id="form_163746_1"></div>
<script type="text/javascript">
(function (d, w, c) {
(w[c] = w[c] || []).push({formId:163746,host:"formdesigner.ru",formHeight:100, el: "form_163746_1",center: 1,scroll: 0});
var s = d.createElement("script"), g = "getElementsByTagName";
s.type = "text/javascript"; s.charset="UTF-8"; s.async = true;
s.src = (d.location.protocol == "https:" ? "https:" : "http:")+"//formdesigner.ru/js/iform.js?v=0.0.3";
var h=d[g]("head")[0] || d[g]("body")[0];
h.appendChild(s);
})(document, window, "fdforms");
</script>
<hr>
<div class="text-center">
<button type="button" class="btn btn-primary" data-dismiss="modal">Закрыть</button>
</div>
</div>
</div>
</div>
</div>
Answer the question
In order to leave comments, you need to log in
Copy the window, change the id to id="modal-feedback", change the id on the button to open the window. Through this id the button and the popup are connected.
The rest will work
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question