Skip to main content

Add a form to a page

What it does​

You can show a form in two ways described here. Give the form a web address of its own, and it gets a page of its own on your store. Or put it inside a CMS page or block with the WebForms: Form widget, below your own text. A CMS page is a content page you manage in the admin, a block is a piece of content you can reuse on several pages, and a widget is an item you insert into either of them.

The address is set in the form's settings, in Content → WebForms → Manage Forms. Widgets are added where you edit pages and blocks, in Content → Elements → Pages or Blocks.

Before you start​

  • The form is switched on and published. See Creating forms and Drafts, publishing and versions.
  • To place a widget, you need a CMS page or block to put it in. A block shows the form only where the block itself is already placed on your store.
  • The widget steps below use Page Builder, the page editor Magento opens by default. Page Builder's own Form element does the same as the widget with fewer steps. See Page Builder.

Steps​

Give the form its own page​

  1. Go to Content → WebForms → Manage Forms.
  2. Click the form's name.
  3. Click Placement in the list of sections on the left.
  4. In Form Page, select Own Storefront Page. URL Key appears below it.
  5. In URL Key, enter the last part of the address, for example request-a-callback. Use lowercase letters, numbers and hyphens, and pick an address no other page of your store uses.
  6. Click Save. The message "You saved the form." appears.

Your form now has a page at your store's address followed by the URL key, for example /request-a-callback.

Embed a Form on Any Page2:20Watch on YouTube

Show the form inside a page or block​

These steps use a CMS page. For a block, go to Content → Elements → Blocks in step 1. The rest is the same.

  1. Go to Content → Elements → Pages.

  2. In the row of the page, click Select, then Edit.

  3. Click Content to expand it, then click Edit with Page Builder.

  4. In the panel on the left, click Elements and drag HTML Code onto the page, where the form should go.

  5. Point to the new element and click the gear icon in its toolbar. The Edit HTML Code panel opens.

  6. Click Insert Widget....

  7. In Widget Type, select WebForms: Form. Widget Options appear below it. The WebForms 3 widgets, named with (Legacy), aren't in this list. Content that already uses them keeps working.

  8. In Form, select your form. When two forms have the same name, each shows its ID, for example Order Feedback (#12); the ID column of Manage Forms tells you which is yours.

  9. Click Insert Widget. A line that starts with {{widget appears in the box. Leave it as it is: it is how the page stores the widget.

  10. Click Save at the top of the Edit HTML Code panel.

  11. Click Close Full Screen, the icon in the top-right corner of Page Builder.

  12. Click Save for the page.

The message "You saved the page." appears.

Show the form in a side column​

To show a short form, such as a callback request, in the left or right column of your store's pages, place the widget with Magento's widget manager instead of inside a page:

  1. Go to Content → Elements → Widgets and click Add Widget.
  2. In Type, select WebForms: Form. In Design Theme, select your store's theme. Click Continue.
  3. On Storefront Properties, enter a Widget Title for your own reference and select the store views in Assign to Store Views.
  4. Click Add Layout Update. In Display on, select the pages, for example All Pages. In Container, select Sidebar Main or Sidebar Additional.
  5. Click Widget Options on the left and select your form in Form.
  6. Click Save.

The form shows only on pages whose layout has a side column, such as category pages in a two-column layout.

What you should see​

  • Own page: open your store's address followed by the URL key. The form appears, and the browser tab shows the form's Meta Title, or its Name when Meta Title is empty. See Form settings.
  • Widget: open the CMS page on your store. The form appears where you put the widget, after the text above it. A block shows the form wherever that block appears.

The form appears both ways on Luma, Hyvä and Breeze store views, each in that theme's own style.

Limits​

  • A form placed with a widget follows the page or block. On a store view the page isn't assigned to, visitors get the "page not found" page, not the form.
  • If the form is limited to customers, a guest who opens a page with the widget sees the rest of the page and, in place of the form, "Please sign in to fill out this form." with a Sign In link. See Limit a form to customers.

Troubleshooting​

  • The page shows "Web-form is not active." The form is switched off. Open its settings, turn on Enable Form and click Save. See Form does not appear on the page.
  • A different form appears. Form kept the first form in the list when the widget was inserted. Remove that HTML Code element with the bin icon in its toolbar, then repeat steps 4 to 12 and select your form in Form.
  • The form shows old fields or labels. Your latest changes are still a draft. See Changes in the builder do not show on the storefront.

What's next​

Applies to WebForms 4Last reviewed November 24, 2026