Copy the LeadForms code
In the quiz editor, open “Publish” → “On website” and expand the “Site code” block. Copy the code, which looks like this:
It is one code for the whole site: it loads all your quizzes and widgets. If the code is already installed, the block is called “LeadForms code found on your website”: in that case you do not need to paste it again.
<script async src="https://script.leadforms.org/v1.js" data-key="YOUR_KEY"></script>. Your key is already filled in.It is one code for the whole site: it loads all your quizzes and widgets. If the code is already installed, the block is called “LeadForms code found on your website”: in that case you do not need to paste it again.
Paste the LeadForms code in Bitrix24
Go to the site settings, “Settings” → “Page settings”. Open the “Advanced” tab, turn on “Custom HTML and CSS”, paste the LeadForms code and save.
The code has to be on every page where the quiz should work: if you have several pages, paste the same code into the settings of each one.
The code has to be on every page where the quiz should work: if you have several pages, paste the same code into the settings of each one.
Get the quiz link from “Your website’s links and buttons”
Go back to LeadForms, to the “Publish” → “On website” tab. In the “Where the quiz appears” step, choose “Window over the site” or “Side panel”, and in the “How it opens” step expand “Your website’s links and buttons”. These links always work: there is nothing extra to turn on. The quiz will open from any button or link on your site that points to
You can add other options there too, for example “LeadForms button: in the corner or as a banner” or “Auto-open”.
Click the “Publish” button at the bottom of the tab. Until you do, the changes will not reach your site.
#leadforms-ID, where ID is your quiz number.You can add other options there too, for example “LeadForms button: in the corner or as a banner” or “Auto-open”.
Click the “Publish” button at the bottom of the tab. Until you do, the changes will not reach your site.
Add a button from the Bitrix24 editor
Add a block that has a button.
Put the quiz link on the button
Click the button to configure it and, in the “Link” field, enter
#leadforms-ID, replacing ID with your quiz number. Save.
Publish the page
The quiz will open when someone clicks the button. To check the setup, go to LeadForms, click “Check page” in the “Site code” block and enter the page address.
Stuck with the setup?
If something does not work, and we will sort it out with you.