Skip to main content
Need rendering guidance and security tips? See Rendering Embedded Forms.

Embedding via WYSIWYG editor

Step 1: Copy your form embed code

To insert a form into ButterCMS, you need to embed the code from your third-party form tool into your Blog Post or Page’s WYSIWYG field. Here’s an example using Wufoo:
  1. Login to your form provider account.
  2. Navigate to the form you want to embed.
  3. Find the “Share” or “Embed” option.
  4. Copy the embed code.
Wufoo Form Manager Getting embed code from form provider

Step 2: Paste into WYSIWYG field

  1. In ButterCMS, navigate to your page or blog post.
  2. Click on the WYSIWYG field where you want to embed the form.
  3. Click on the Source code button (<>) in the toolbar.
WYSIWYG source code button
  1. Paste your embed code into the source view
Pasting embed code in source view
  1. Click Save to apply the changes

Step 3: Preview your form

Depending on what code you embed, you will either see a link to your form or the actual form on your WYSIWYG field. Form preview in WYSIWYG You can preview your post before publishing it to see how it will look on your live site. Form rendered on live site

Creating a form embed Component

For more control and reusability, create a dedicated Component for form embeds:

Component schema

Create a new Component called Form Embed with these fields:
Field NameField TypeDescription
form_titleShort TextDisplay title for the form
form_providerDropdownOptions: HubSpot, Mailchimp, Google Forms, Other
embed_codeLong TextThe iframe or script embed code
form_heightNumberHeight in pixels (default: 500)
show_titleCheckboxWhether to display the form title

Best practices

Performance tip: Forms with heavy JavaScript (100KB+) can impact page load times. Consider lazy-loading forms using the Intersection Observer API to load them only when scrolled into view.

Accessibility

  1. Form labels - Ensure embedded forms have proper labels
  2. Keyboard navigation - Test that forms can be completed using keyboard only
  3. Screen readers - Verify form fields are announced correctly
  4. Color contrast - Check that form elements meet WCAG guidelines

Troubleshooting

IssueSolution
Form not displayingCheck that the embed code is valid HTML/JavaScript
Form cut offAdjust the iframe height or use responsive embed styles
Submission errorsVerify the form action URL is accessible
Styling conflictsAdd CSS scoping or use an iframe to isolate styles
CORS errorsEnsure the form provider allows embedding from your domain

Next steps

Custom form handling

Build custom forms using Collections

Form integrations

Use native Typeform, Jotform, Formstack integrations