Answer the question
In order to leave comments, you need to log in
How to bind the Bitrix24 CRM form to an existing button on the site?
Existing button:
jQuery(function($) {
var myButton = '<a href="http://example.org" class="roll-button button-slider">My Button</a>';
$( '.slide-inner' ).append(myButton);
});
<script id="bx24_form_button" 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,'https://crsystems.bitrix24.ua/bitrix/js/crm/form_loader.js','b24form');
b24form({"id":"6","lang":"ru","sec":"pa1cic","type":"button","click":""});
</script>
<button class="b24-web-form-popup-btn-6">Мы перезвоним вам</button>
Answer the question
In order to leave comments, you need to log in
Just add the same class to your button
jQuery(function($) {
var myButton = '<a href="http://example.org" class="roll-button button-slider b24-web-form-popup-btn-6">My Button</a>';
$( '.slide-inner' ).append(myButton);
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question