Webflow sync, pageviews & more.
NEW

How can I add a code snippet to my Webflow page for a contact form?

TL;DR
  • Use the Embed element to insert custom HTML/JavaScript directly into your Webflow page.
  • Alternatively, add external scripts/styles in the Page Settings under the head or body sections.
  • Ensure all required CSS/JS resources are included, and use third-party tools for server-side form handling if needed.
  • You can also use Webflow’s built-in Form Block for simpler integration with Webflow's backend.

To add a custom code snippet to a Webflow page for a contact form, you can use Webflow’s built-in Embed element or place the code in the Page Settings. Here's how to do it depending on where the code is coming from (e.g., third-party form like Typeform or custom-built form).

1. Use the Embed Element for Inline Code

  • Drag the Embed element from the Add Panel into your page where you want the form to appear.
  • Paste your custom HTML/JavaScript code snippet (like a third-party form embed) directly into the Embed code editor.
  • Click Save & Close, then Publish your site to view the form.

2. Add Code to Page Settings (for head or body)

  • Go to Pages in the left sidebar of the Designer.

  • Click the gear icon next to the page where the form should appear.

  • In the Custom Code section, paste your:

  • Before : For styles or external scripts (like CSS or