Re is out: see what's new Lifetime updates on every purchase Support replies within 24 hours Secure checkout via Gumroad 8,500+ sales since 2016

To another site

Updated 2 min read 9 views

There are two ways to move forms to another site, such as from a local site to a staging site. Entries stay where they are either way.

All your forms, as a file

  1. On the first site, go to Contact Form → Settings → Export & import and click Download forms. You get every form in one .json file, with its fields, mails, messages and settings.
  2. On the other site, open the same tab, pick the file under Forms file (.json) and click Import forms.

Forms keep their shortcode when no form on the other site has it, so pages there show the right forms. Turn on Replace forms with the same shortcode to update forms you imported before; off, they come in as copies with a new shortcode. The tab then says how many forms were added and replaced.

One form, as code

  1. On the first site, open the form, go to Advanced → Copy to another site and click Copy form code.
  2. On the other site, go to Contact Form → Add New, or open the form you want to replace.
  3. In its Advanced tab, paste the code into Paste form code and click Replace this form.
  4. Check the form, then click Save. Nothing is saved before that.

The code holds the whole form: its title and note, its markup, fields, groups, both mails, messages and settings.

Browsers only let the Copy button reach the clipboard on https:// sites and on localhost. On a plain http:// site, click into the code box above the button and copy it by hand.

Things to check after pasting

  • The form gets a new ID on the other site, so shortcodes and theme settings there need it.
  • A redirect page or webhook address is copied as written, even if it points to the first site.
  • A field type added by a theme or plugin, such as a theme’s own field, needs that theme or plugin on the other site too.
Was this article helpful?