How do I launch a Typeform popup when someone clicks on a specific button on my Webflow website?

Published on
September 22, 2023

To launch a Typeform popup when someone clicks on a specific button on your Webflow website, you can follow these steps:

  1. Access your Typeform account: If you don't have a Typeform account, sign up for one.

  2. Create a new form or select an existing one: To set up a popup form, you'll need to create a new form or choose an existing one from your Typeform dashboard.

  3. Customize your form: Design your form to match the branding and style of your website. You can add fields, choose fonts, colors, and customize the form layout.

  4. Enable the popup mode: In the Build section of your Typeform editor, navigate to the Share panel on the left-hand side. Under the "Distribute" section, click on the "Popup" option.

  5. Configure the popup settings: Customize the popup's appearance and behavior by selecting the desired options. You can set the size of the popup, choose the trigger method (i.e., button click), and define the button text.

  6. Copy the popup code: Once you've configured the popup settings, click on the "Embed Code" tab, and copy the generated code.

  7. Go to your Webflow website: Log in to your Webflow account and navigate to the page where you want to add the button.

  8. Add a button element: Drag and drop a button element onto your Webflow page and position it wherever you want the button to appear.

  9. Set up the interaction: With the button selected, go to the Interactions panel on the right-hand side of the Webflow designer. Click on the "+" icon to create a new interaction.

  10. Configure the interaction: Name the interaction, and choose the trigger type as "Click".

  11. Add an action: Within the interaction, click on the "+" icon under the Actions section, and select "Run a JavaScript".

  12. Paste the Typeform popup code: In the JavaScript editor, paste the Typeform popup code that you copied earlier.

  13. Add a class or ID: Assign a class or ID to your button element to make it easier to target with JavaScript. You can do this by clicking on the Style panel and adding a class or ID in the respective fields.

  14. Publish your website: Once you've completed the above steps, save your changes and publish your Webflow website for the changes to take effect.

Now, when someone clicks on the button you specified, the Typeform popup form will launch on your Webflow website.

Additional Questions:

  1. How do I customize the appearance of the Typeform popup in Webflow?
  2. Can I launch a Typeform popup form from a link instead of a button in Webflow?
  3. How can I track conversions or collect data from the Typeform popup form on my Webflow website?