S
S
Sergey2021-10-06 14:20:58
1C-Bitrix
Sergey, 2021-10-06 14:20:58

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>


Is it possible to copy / paste another such modal window for another page, which also has a modal window on the connect button , but with a different form already?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Morozov, 2021-10-14
@Q_BASIC

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 question

Ask a Question

731 491 924 answers to any question