hi @agencia221b
Thank you for response!
There is still no built-in import but I just tested this code (the one that Zafer shared with you) and it actually worked fine. There are some things to make sure of, though, so I’d like to ask you to give it one more try but this time let me guide you step-by-step through it:
First, you need to make sure that the form into which you want to import submissions is exactly the same as the source one; if it’s within the same site – you may create duplicate; if it’s on a different site – you may import the form; but the point is it needs to have all the same fields – exactly the same.
Note down the ID of that new (target) form; form ID is the number you see in form shortcode.
Now let me share exactly what I did next on my end:
1. I exported submissions to a CSV file from the original form and saved it on my local drive. Then for the ease of use I renamed the CSV file to “entry-import.csv”.
2. I uploaded that file to the “/wp-content/uploads” folder on the site into which I wanted to import entries.
3. then I create an empty file with a .php extension (“form-entry-import.php”) in the “/wp-content/mu-plugins” folder; again – on the site into which I wanted to import entries.
4. I copies entire code from here
https://gist.githubusercontent.com/wpmudev-sls/c388628c027364aa866e4d1c329f5b5d/raw/2578ce59fdff46f9f3d4fa24a2baf949cc3a901b/forminator-import-submissions.php
into that file and before saving it, made following changes
a) in this line
$form_id = 7;
I replaced 7 with an ID of my target (the one I was importing to) form ID
b) in this line
$csv_filename = "forminator-simple-contact-form-211019093636";
I replaced “forminator-simple-contact-form-211019093636” with “entry-import” (as I named the file in step 1;note that actual file has CSV extension but I didn’t use it here; it’s important!)
Then I saved that file.
5. Then, being logged-in as admin, I visited “https://mysite.com/wp-admin/index.php?import_submissions=true” (where mysite.com was of course replaced with a real address of my test site).
Once the page loaded I checked submissions for that new form and all were there – imported as expected.
I think it’d be worth giving another shot just to make sure – but be sure to follow above steps exactly, especially if it comes to the use of filename and the location of the CSV file.
Best regards,
Adam