Skip to content

Instantly share code, notes, and snippets.

@proweb
Last active March 24, 2021 10:48
Show Gist options
  • Save proweb/619ec9058c492aff304e060fd99a19a9 to your computer and use it in GitHub Desktop.
Save proweb/619ec9058c492aff304e060fd99a19a9 to your computer and use it in GitHub Desktop.
Как разместить две формы Битрикс 24 на сайте.
<div id="my_container"></div> <!-- Form container -->
<!-- JS code from CRM Bitrix24 -->
<!-- Added "node" parametr -->
<script id="bx24_form_inline" data-skip-moving="true">
(function(w,d,u,b){w['Bitrix24FormObject']=b;w[b] = w[b] || function(){arguments[0].ref=u;
(w[b].forms=w[b].forms||[]).push(arguments[0])};
if(w[b]['forms']) return;
s=d.createElement('script');r=1*new Date();s.async=1;s.src=u+'?'+r;
h=d.getElementsByTagName('script')[0];h.parentNode.insertBefore(s,h);
})(window,document,'http://cp.silaev.bx/bitrix/js/crm/form_loader.js','b24form');
b24form({"id":"6","lang":"ru","sec":"ivscxd","type":"inline", "node": document.getElementById('my_container')});
</script>
@BekNaji
Copy link

BekNaji commented Mar 24, 2021

Hello Mr Sergey Mochalov @proweb,
I need a help. I copied this code and I changed the link. Every thing is working but the form is 2 times loading.
Why could it be ? can you help me please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment