Coming from WebForms 1 or 2
The short answer
If your store still runs WebForms 1 or 2, you can move it to WebForms 4 with a separate migration tool from MageMe. The tool carries your forms and submissions across and leaves the old data untouched. Every store's old data is different, so contact MageMe support before you start: support checks your store with you and tells you whether to migrate or rebuild.
WebForms 2 is no longer updated or supported, but a copy that's installed keeps working: nobody switches it off remotely.
How it works
WebForms 1 and 2 kept their data in their own database tables. WebForms 4 doesn't read those tables itself. The migration tool is an extra module that knows them. It's installed next to WebForms 4, run once, and removed again.
The two commands
The tool adds two commands, which your developer runs on the server:
bin/magento webforms:legacy statusreports what the old tables hold, how much of it is already in WebForms 4 under the same numbers, and whether anything would be overwritten. It changes nothing. Run it first, and again after the move: it then also says what was left out.bin/magento webforms:legacy migratebrings the data across. Keep what it prints: it names, form by form, everything that couldn't come across as it was (see below). Only one run works at a time; a second one stops and asks you to run it again later.
What the tool brings across
- Your forms, with their sections, fields and conditions between fields.
- Each form's texts for every store view.
- Submissions with their answers, the replies your team sent, and the records of uploaded files.
- Quick responses.
- Each form's email settings, which become its notifications in WebForms 4.
- A few store-wide settings: whether visitors' IP addresses are stored, and the reCAPTCHA keys. The old reply-to address is copied too, into a setting that no WebForms 4 email uses. An answer to a WebForms 4 email goes to its sender address, so pick a Sender Identity whose address should get the answers, or collect them in the Inbox with Replies by email.
Forms and submissions keep their numbers, so links and reports that use a form's or a submission's number keep working. Submissions arrive marked read.
Where your forms are shown
Forms placed by WebForms 2 keep working without edits. That covers a form, or a button that opens a form in a popup, placed:
- as a widget on a CMS page or in a CMS block;
- in Page Builder;
- as a widget instance in Content → Elements → Widgets;
- in a layout file or a template.
Each shows the same form as before, because the forms keep their numbers. You can open a WebForms 2 widget instance and save it again: it keeps its form, and a button keeps its text. How a form looks now comes from the form's own settings in WebForms 4. The old placement's options for the template, scrolling and loading the form after the page are ignored.
What doesn't come across
Your forms and submissions:
- Uploaded files stay where WebForms 2 kept them. Only the records of the files move, and the links in submissions work while the files stay in that place.
- The form's consent block (agreement text and checkbox) doesn't come across. Add a Terms field instead.
- The hint is lost on Select, Radio, Checkbox, Contact, Autocomplete, Country, State, Newsletter, Rating, File, Image, HTML, Hidden and Editor fields. On text-like fields it becomes the placeholder. The old field size setting is lost too.
- Every form keeps the default appearance of WebForms 4.
- Every form arrives on one screen. To split a form into steps, do it in WebForms 4.
- An old submission whose number is already taken is skipped with its answers, replies and files.
- A field of a type your store doesn't have arrives as a text field. It works as that type again once the module that provides the type is installed.
- A condition between fields that WebForms 4 can't keep, such as one with no action, is left out. The output names it, with the fields and sections it showed or hid: they're now always shown, and the output marks the required fields among them. Rebuild the condition in WebForms 4. A later run names the condition again even after you rebuilt it; you can ignore that line then.
- Rows whose form, section, trigger field or store view was deleted in WebForms 2 are left out, each with one line in the output. A field whose section is gone arrives outside sections. The status command counts these rows before you run.
- A submission from a customer whose account no longer exists stays, without a link to an account.
- No email is sent for the old submissions.
Emails and PDFs:
- A notification built on your own Magento email template keeps a link to that template. If the template is missing, the notification is created switched off.
- An old reply-to address is used only for the email to the customer, and only the first address.
- Notifications get no conditions, because WebForms 2 had none.
- Of the print templates, only the choice of template is kept, and only when the Print add-on is installed.
Store settings and access:
- Of the store-wide settings, only the reply-to address, storing visitors' IP addresses and the reCAPTCHA settings come across. A setting you already changed in WebForms 4 isn't overwritten. All other settings keep their WebForms 4 values.
- Admin roles and API integrations don't get WebForms permissions. Give each role All Forms or its forms by hand. See Roles and permissions.
- Integrations, automatic mailings and other add-on data of WebForms 2 aren't read. Set up the WebForms 4 add-ons again.
What protects your store
- The tool only reads the old tables. It never changes or deletes them.
- Before it writes anything, it checks whether WebForms 4 already uses the same numbers for its own forms, sections, fields, conditions or quick responses. If it does, the tool stops and lists them, and nothing is written. This happens on a store where forms were already built in WebForms 4.
- An old submission whose number a WebForms 4 submission already has is skipped and listed, never written over.
- A run that stopped is finished by running it again. The tool notes each row it brings across, so a later run skips what arrived and adds only what's missing. A row you delete in WebForms 4 after it arrived is not brought back by a later run.
If your store already moved to WebForms 3
WebForms 3 had a migration of its own, and the old WebForms 1 or 2 tables stayed in place after it. If your store ran it, most or all of your data is already in place. If you run the tool anyway, for example because the WebForms 3 migration didn't bring everything, it recognizes what is already there. A form, section, field, condition, submission, reply or quick response counts as already brought across when it has the same number and the same creation time, and, where it belongs to something, the same parent. An answer or a file record matches by its submission and field, and a store view text by its store view and what it belongs to. That holds even if you renamed it in WebForms 3, and your names stay as you set them; the tool lists the renamed ones. Only what WebForms 3 didn't bring is added, and it is added without asking. A field, submission or quick response you deleted in WebForms 3 therefore comes back. A row that shares a number with a WebForms 4 row but not its parent or creation time still stops the tool, as described above.
Form files from WebForms 2
A form file exported from WebForms 2 can be imported on Manage Forms while the migration tool is installed. Without the tool, the import refuses it with a message that names the tool. A condition in the file that WebForms 4 can't keep, one with no action or with a word WebForms 4 doesn't have, is left out, and the import report names it.
What this means for you
- Move before you build. On a store with no WebForms 4 forms yet, the tool has nothing to collide with.
- Contact support first. The steps depend on what your old store holds, so they're not published here.
- If your old forms are few or simple, rebuilding them in WebForms 4 can be the cleaner way. You start from the current templates and settings instead of carrying old ones across.
- Removing the old WebForms 1 or 2 tables after the move is up to you. The tool leaves them in place.
What's next
- Creating forms: if you rebuild, start each form from a template or a blank form.
- Importing and exporting forms: import a WebForms 2 form file, or move forms between stores later.
- Email notifications: check the emails your old settings became.