Skip to main content

Popup and slide-out forms

What it does​

A form doesn't have to take up room on the page. It can wait behind a button and open only when a visitor asks for it:

  • Popup: a button on the page opens the form in a window over the page. You add it with the WebForms: Button With Popup widget, or with Popup Button in Page Builder.
  • Slide-out: a tab on the edge of the screen opens the form in a panel that slides in from the side. Add it to one page with the WebForms: Slide-Out Form widget, or to every page of your store with the Slide-Out Form settings in Stores → Configuration → MageMe Extensions → WebForms. The setting's note says the tab shows on every storefront page.

Before you start​

  • The form is switched on and published. See Creating forms.
  • A short form works best: a window or a side panel has less room than a page.
  • You know how to insert a widget into a CMS page or block. See Add a form to a page.

Steps​

Embed a Form on Any Page2:20 · starts at 1:07Watch on YouTube

Add a button that opens a popup​

  1. Open the page or block in Page Builder, add an HTML Code element and click Insert Widget..., as in Add a form to a page.
  2. In Widget Type, select WebForms: Button With Popup.
  3. In Form, select your form.
  4. In Button Text, enter the words on the button, for example Request a callback. It's required.
  5. In Popup Title, enter the heading of the window, for example Request a callback.
  6. Leave Popup Width at Auto unless the window is too narrow or too wide. Its note says Auto opens a regular form in a medium window and a multi-step form in a wide one, and that on phones the popup fills the screen.
  7. Click Insert Widget, then Save in the Edit HTML Code panel, then save the page or block.

If you design the page in Page Builder, its Popup Button element adds the same kind of button, without the Popup Width setting. See Page Builder.

Add a slide-out form to one page​

The slide-out panel adds no heading of its own: under its close button, it starts with the form's first field. If you want a heading in the panel, add a Heading at the top of the form in the builder. It shows wherever the form appears, not only in the panel.

  1. Open the page or block in Page Builder, add an HTML Code element and click Insert Widget....
  2. In Widget Type, select WebForms: Slide-Out Form.
  3. In Form, select your form.
  4. In Position, select Right or Left: the edge of the screen where the tab sits.
  5. In Button Text, enter the words on the tab, for example Questions?.
  6. If you want an icon on the tab, select it in Button Icon: Bubble, Envelope, Question or Survey.
  7. Change the colors only if you need to: Button Color, Button Text Color and Form Background Color.
  8. Change the sizes only if you need to: Button Width (px), Button Height (px) and Form Width (px).
  9. In Overlay, select Yes to dim the page while the panel is open, or No.
  10. Click Insert Widget, then Save in the Edit HTML Code panel, then save the page or block.

Add a slide-out form to every page​

This one is a store setting, not a widget.

  1. Go to Stores → Configuration → MageMe Extensions → WebForms.
  2. Decide where the change applies. Default Config in Scope applies to every store view that has no value of its own. If only one store view should change, select it in Scope, then clear Use Website next to each setting you change.
  3. Expand Storefront Forms, then Slide-Out Form.
  4. In Show Slide-Out Form, select Yes. Form to Show and the other settings appear.
  5. In Form to Show, select your form.
  6. Check Panel Position (Right or Left) and Dim Page Background.
  7. To change the tab's text, icon, colors or size, expand Button & Panel Style.
  8. Click Save Config.

For every setting of this group, see Storefront Forms settings.

What you should see​

  • Popup: the button appears on the page. Clicking it dims the page and opens the form in a window with your Popup Title and a close button. When the form shows a confirmation message after sending, the message appears in the window.

    The Request a callback window with its close button and the fields Your name, Phone and Best time to call, above Submit
  • Slide-out: a colored tab with your text sits on the edge of the screen on that page, or on every page for the store setting. Clicking it slides the panel in, with a close button above the form's first field. With Overlay or Dim Page Background on, the rest of the page stays visible beside the panel, dimmed. The close button or the Escape key closes it.

    The slide-out panel open on the left edge with its close button and the fields Your name, Phone and Best time to call, above Submit, and the dimmed store page beside it

The popup, the slide-out widget and the store-wide tab work the same on Luma, Hyvä and Breeze. Forms sent from the popup arrive in the Inbox like any other submission.

Limits​

  • If anything on the form is a level-1 heading — a Heading at H1, or an <h1> in an HTML element — the popup shows the form's heading and leaves out Popup Title. A form made from the Event Registration template is an example.
  • A page can show the store-wide slide-out and a slide-out widget at the same time: you get two tabs. Put them on different edges with Position and Panel Position.
  • The Slide-Out Form settings can differ for each store view. A store view with its own value keeps it when you change Default Config.
  • The slide-out panel has no heading setting. A heading in the panel comes from the form itself, so it also shows on the form's own page and in a popup.

Troubleshooting​

  • The button or the tab doesn't appear. Check that you saved the page and that the form is switched on. See Form does not appear on the page.
  • The popup has no title. Enter a Popup Title in the widget, or check whether the form already has a level-1 heading: a Heading at H1, or an <h1> in an HTML element.
  • The popup or the panel says "The form could not be loaded." The form didn't arrive, for example because the connection dropped. Click Try Again.
  • The slide-out panel has no heading. The panel doesn't add one. Add a Heading at the top of the form in the builder and click Publish Changes.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026