Mokaform

Embed forms on your website

Embed Mokaform forms as inline widgets, popups, popovers, sliders, side tabs, or full-screen forms on your website.

Embedding keeps respondents on your website while Mokaform handles the form experience.

Embed styles

StyleBest forBehavior
WidgetContact pages, landing pages, blog postsThe form appears inline inside the page.
Full screen widgetDedicated survey pagesThe form fills the available container or screen.
PopupCampaign pages and CTAsA button or link opens the form in a modal.
PopoverLightweight website feedbackA compact corner-style launcher opens the form.
SliderLead capture and contextual feedbackThe form slides in from the side.
Side tabPersistent feedback or support entry pointA tab stays on the left or right edge of the page.

If compatibility matters more than visual effect, start with the widget embed. It is the simplest option for most website builders.

Add an embed

Open your form and publish the latest version.

Go to the Share tab.

Choose the embed style you want.

Configure size, button text, colors, position, and submit behavior.

Save the embed, copy the code, and paste it into your website's HTML area.

Use the embed link instead of the full HTML code when a tool only accepts URL embeds.

Configuration options

Mokaform embed code uses data-mf-* attributes. The generated code handles these for you, but understanding them helps when you work with developers.

Common attributes include:

  • data-mf-widget, data-mf-popup, data-mf-popover, data-mf-slider, or data-mf-side-tab.
  • data-mf-link for the public form URL.
  • data-mf-width, data-mf-height, and data-mf-auto-height for inline sizing.
  • data-mf-full-screen for full-screen widget behavior.
  • data-mf-button-text, data-mf-button-color, and data-mf-button-size for launcher buttons.
  • data-mf-popup-size, data-mf-slider-position, and data-mf-side-tab-position.
  • data-mf-hide-on-submit to hide an embed after a successful submission.
  • data-mf-background and data-mf-opacity for visual blending.

Passing data into embedded forms

You can pass URL parameters through the form link used by the embed.

https://your-form-link?utm_source=website&plan=pro

Use this for attribution, prefilled fields, or branch logic. Define the matching URL parameters in Mokaform before relying on them in rules or copy.

Website builder notes

Platform typeRecommendation
Custom websitePaste the full embed code before the closing body tag or in the target HTML block.
CMS or no-code builderUse a custom HTML/embed block when available.
Tools that block JavaScriptUse the public form link or URL embed instead.
Email clientsUse the email embed instructions from the Share tab, not the website embed code.

Troubleshooting

What to explore next

On this page