Skip to main content

Popup callback form

What it does​

A Request a callback button on a page of your store. When a visitor clicks it, a short form opens in a window over the page: name, phone number and the best time to call. Your team gets an email with the number to call, and the visitor sees a thank-you message in the same window.

No starter template is a callback form, so this recipe starts from a blank form.

Uses: a blank form (Creating forms), Adding fields and sections, Notify your team and Popup and slide-out forms.

Before you start​

  • Deliver Notifications is on, so WebForms sends email. See Quick start, and How email delivery works for what it holds back.
  • Your store's Sales Representative address in Stores → Configuration → General → Store Email Addresses is a mailbox your team reads.
  • You know which page the button goes on. This recipe makes a new CMS page for it.

Steps​

Build a Callback Request Form3:23Watch on YouTube

Create a blank form​

  1. Go to Content → WebForms → Manage Forms.
  2. Click Add Form.
  3. In the list on the left, click Blank form, then Start from Scratch at the right end of the top bar. The builder opens with an empty form called New Form. Nothing is saved until your first change.

Add the fields​

  1. In the left panel, drag Name onto the box "Drag an element from the palette on the left and drop it here". This first change creates the form, switched off. Its settings open in the right panel.
  2. In Field Code, enter fullname, then turn on Required.
  3. Drag Phone onto the form below Name.
  4. In Label, enter Phone, then turn on Required.
  5. In Initial Country, select the country most of your callers are in. The box then starts with its dialling code.
  6. Drag Select onto the form below Phone.
  7. In Label, enter Best time to call.
  8. Under Field Settings, click Edit Options, then Edit as Text.
  9. Keep the first line, ^^-- Please Select --: it's what the list shows until the visitor picks. Replace the lines below it with your times, one per line, for example Morning, 9:00 to 12:00.
  10. Click Replace Options, then Done.
  11. Click Next: Settings at the right end of the top bar. The form's settings page opens with the hint "Final step: turn on Enable Form and click Save."

For more on these fields, see Phone field and Options.

Show the caller's name and email your team​

  1. In Name, enter the name you'll see in the admin, for example Phone Callback Request, and turn on Enable Form (it changes to Yes). Then click Placement in the list of sections on the left and, in Form Page, select Embed Only: visitors open the form from the button, so it needs no page of its own.

  2. Click Submission Identity in the list of sections on the left.

  3. In Submitter Name, enter {{field:fullname}}. Without it, the email calls every visitor Guest.

  4. Click Save.

  5. Click Notifications in the list of sections on the left.

  6. Click the arrow next to Add New Notification, then Admin Notification under Presets. A card Admin notification, marked Disabled · not sent, appears.

    The Presets menu that the arrow next to Add New Notification opens, from Admin Notification down to Blank Notification
  7. Click Admin notification. Its page opens.

  8. In Name, enter Callback request.

  9. In Store Address, select Sales Representative.

  10. Turn on Status.

  11. Click Save. The message "Notification saved." appears.

For the other ways to choose who gets the email, see Notify your team.

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

Put the button on a page​

  1. Go to Content → Elements → Pages and click Add New Page.
  2. In Page Title, enter the title, for example Furniture Care Advice.
  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.
  5. Point to the new element and click the gear icon in its toolbar.
  6. Click Insert Widget....
  7. In Widget Type, select WebForms: Button With Popup.
  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. In Button Text and in Popup Title, enter Request a callback.
  10. Click Insert Widget, then Save at the top of the Edit HTML Code panel, then Close Full Screen.
  11. Click Search Engine Optimization to expand it. In URL Key, enter the page's address, for example care-advice.
  12. Click Save. The message "You saved the page." appears.

What you should see​

  • On the page, a Request a callback button. Clicking it dims the page and opens the form in a window titled "Request a callback".
  • The visitor enters a name and a phone number, picks a time and clicks Submit. The window shows "Thank you! Your submission has been received."
  • In Content → WebForms → Inbox, the submission shows the visitor's name, the number with its country code, such as +12015550137, and the time.
  • A little later, the team email arrives at Sales Representative. Its subject starts with "New request" and gives the reference number and the form's name. The text lists the name, the phone number and the time.

On the test store the popup opened and sent the same way on the Luma and Hyvä store views.

Make it yours​

Limits​

  • The form has no email address field, so the visitor gets no email and you can't reply from the admin by email. Call the number in the submission.
  • Initial Country sets where the phone box starts. A caller from another country picks their own flag from the list before typing.
  • Keep a country in Initial Country: on Auto, the Phone field sends each visitor's IP address to an outside service, ipinfo.io, when the form opens.
  • When two forms have the same name, the widget's Form list shows each with its ID, for example Order Feedback (#12). Check your form's ID in the ID column of Manage Forms and pick that entry, or give your forms different names.

Troubleshooting​

What's next​

Applies to WebForms 4Last reviewed October 14, 2026