Webflow lets you add attributes to any element, so your own designed button can open an ENTD drawing — no embed needed.
Open Site settings → Custom code and paste the script into Head code. Save the changes.
<script src="https://entd.tech/em/entd-embed.js"
data-connection-id="YOUR_CONNECTION_ID" async></script>Select a Button or Link Block, open Element settings → Custom attributes and add an attribute with the name data-entd-drawing and your Drawing ID as the value.
Add a Code Embed element where the button should appear and paste the container.
<div data-entd-drawing="YOUR_DRAWING_ID"></div>Scripts don’t run in the Designer. Publish the site and test on the published URL.
data-entd-drawing gets the branded ENTD button inside it.data-entd-drawing to your own <a> or <button> — the drawing opens when it’s clicked, your design stays as is.#entd-draw-YOUR_DRAWING_ID. No HTML block needed — handy where you can only change a button’s URL.Add a plain text field “ENTD Drawing ID” to the collection and bind the custom attribute value to it (or insert the field into a Code Embed). Every collection item then opens its own drawing from one template.
Add these attributes to the container to change the look of the ENTD button:
data-entd-theme — light, dark or autodata-entd-size — small, medium or largedata-entd-shape — rectangular or pilldata-entd-text — enter_draw, join_giveaway, participate, try_your_luck or any text of your owndata-entd-full-width="true", data-entd-logo="false"<div data-entd-drawing="YOUR_DRAWING_ID"
data-entd-theme="dark"
data-entd-shape="pill"
data-entd-text="Join the giveaway"></div>Most sites built with a website builder have no customer accounts. That’s fine: each visitor gets an anonymous ID stored in their browser, and entries are still checked for duplicates and bots before the draw. If your site does have accounts, pass the visitor’s ID so entries are tied to your customers:
<script>
// Optional: the ID of the logged-in visitor, if your site has accounts
window.ENTDEmbedConfig = { userId: 'CUSTOMER_ID' }
</script>#entd-draw-YOUR_DRAWING_ID with your Drawing ID.entd.tech in script-src and *.entd.tech in frame-src, and api.entd.tech in connect-src.