ES EN
Home Guides Tilda

How to add a quiz to a Tilda website

Copy the button code and the script
Let's start with the button from the LeadForms editor. Open “Publish” → “On website”, choose the “Button” type and adjust how it looks. Copy both code blocks: the script for the <head> section and the button code.
LeadForms “Publish” tab: “On website” mode and embed type selection LeadForms initialization code for the head section, with the “Copy” button
Add a new block
Open the Tilda editor and add an “Other / HTML code” block
Tilda editor: adding the “Other / HTML code” block
Paste the code
Open the content of the block you just added, paste the copied code there and save.
Note that the HTML code block only works on paid Tilda plans. So for the quiz to work, you need a Tilda Personal or Tilda Business plan.
HTML code block in Tilda: field for the LeadForms code
Publish the page
Tilda: publishing the page
Now the option with a button from the Tilda editor
Open the “Custom button” subtab
In the “Custom button” subtab, copy the link in the #popup:Leadforms_ID format. Tilda has plenty of good-looking buttons: pick the one you like.
“Custom button” tab in LeadForms: #popup:Leadforms_ID link and the onclick option
Add a new block
Open the Tilda editor and add an “Other / HTML code” block
Tilda editor: adding the “Other / HTML code” block
Copy the script for the <head> section
The script is in the same tab, above the link block: it is the top code block, with its own “Copy” button.
LeadForms initialization code for the head section, with the “Copy” button
Paste the script into the HTML code block
Open the content of the block you just added, paste the copied code there and save.
Note that the HTML code block only works on paid Tilda plans. So for the quiz to work, you need a Tilda Personal or Tilda Business plan.
HTML code block in Tilda with the LeadForms script pasted in
Add the button
Add a block with a button from the Tilda block library, any one from the forms and buttons section, and open “Content”.
Tilda block library: a button block from the forms and buttons section
Enter the link
In the “Button link” field, enter: #popup:Leadforms_ID (replace ID with the unique ID of your quiz) Then save.
Button settings in Tilda: “Button link” field
Publish the page
Your quiz is now live on your Tilda website.
Tilda: published page with the quiz button
Having trouble with the setup?
If something doesn't work, and we'll sort it out with you.

Still have questions? Write to us

Name *
* Required field
Email *
* Required field
Message
Write to us!
We reply within 30 seconds