.typeform-button) and update the script to trigger the popup using document.querySelector.You want to hide a Typeform embed URL inside a Webflow link block while still being able to trigger a full-screen Typeform popup when a button is clicked. Here's how to do that effectively in Webflow.
typeformEmbed.makePopup() function.
makePopup() call.typeform-button) — you'll need this to link the popup trigger.
typeform-button).```javascript
typeformEmbed.makePopup('https://yourform.typeform.com/to/abc123', {
mode: 'popup',
autoClose: 3,
hideHeaders: true,
hideFooters: true,
buttonText: "Start",
triggerElement: document.querySelector('.typeform-button')
});
```
document.querySelector) matches the class or ID used in your Webflow element.
To hide a Typeform link inside a Webflow button and show it as a full-screen popup on click, use Typeform’s custom embed popup script. Place the script in Webflow’s page settings and use a JavaScript selector to trigger the popup from your button—this keeps the URL hidden from the user interface.