Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

310
Views
Bitrix24 forms in Nuxt 3

I am trying to insert a form from bitrix into my Vue component. ./components/Btrx24.vue

<script lang="jsx">
    export default {
        render() {
            return h('div', {}, [
                h(
                    'script',
                    { 'data-b24-form': 'click/12/7uz2pa', 'data-skip-moving': true },
                    `
                    (function (w, d, u) {
                        var s = d.createElement('script');
                        s.async = true;
                        s.src = u + '?' + ((Date.now() / 180000) | 0);
                        var h = d.getElementsByTagName('script')[0];
                        h.parentNode.insertBefore(s, h);
                    })(window, document, 'https://bitrix.santrek.ru/upload/crm/form/loader_12_7uz2pa.js');
                `,
                ),
                h('a', {}, 'Some Link'),
            ]);
        },
    };
</script>

tsconfig.json

{
    "extends": "./.nuxt/tsconfig.json",
    "compilerOptions": {
        "noImplicitAny": false,
        "jsx": "preserve"
    }
}

In the description of Bitrix it is said to insert their automatically generated tag before the link or button

<script data-b24-form="click/12/7uz2pa" data-skip-moving="true">
  (function (w, d, u) {
    var s = d.createElement('script');
    s.async = true;
    s.src = u + '?' + ((Date.now() / 180000) | 0);
    var h = d.getElementsByTagName('script')[0];
    h.parentNode.insertBefore(s, h);
  })(
    window,
    document,
    'https://bitrix.santrek.ru/upload/crm/form/loader_12_7uz2pa.js',
  );
</script>

How is it supposed to work:

Run Here


What happens in the end is that the tags are created correctly, but the bitrix form is not created and, accordingly, is not displayed.

Run Here

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!