Troubleshooting

Contact Form 7: How to Save Submissions in Your Database

Contact Form 7 does not keep submissions by default. Here is how to save them, and what to check when one is missing.

wpallsolution Updated 3 min read

By design, Contact Form 7 sends an email when someone fills in a form, and then forgets the message. That is why people search for how to Contact Form 7 save submissions in their own database. If the email never reaches you, or you lose it, the message is gone. Saving entries gives you a safety copy, and the checks below show what to look at when one does not appear.

Quick answer

Contact Form 7 does not keep submissions by itself. To keep them you need an add-on that stores each accepted submission in your WordPress database. Contact Form 7’s own project suggests a plugin called Flamingo for this. If a saved entry does not appear, check that the submission was accepted (no validation error and not spam), that saving is switched on for that form, and that Contact Form 7 is active.

How this guide was prepared: it is research-based. Contact Form 7 itself is on WordPress.org, and the Flamingo plugin is listed at wordpress.org/plugins/flamingo. The checks below come from the documentation of our own plugin. We have not tested every theme or hosting setup, so treat the steps as a checklist, not a guarantee.

The decision tree: where is it going wrong?

Flowchart for Contact Form 7 save submissions problems: accepted form, saving switched on, Contact Form 7 active, empty files or IP, and duplicate entries
Five questions to find the cause.
  1. Was the form accepted (no validation error or spam)? Fix 1.
  2. Is saving switched on for this form? Fix 2.
  3. Is Contact Form 7 active? Fix 3.
  4. Is a file or the IP column empty? Fix 4.
  5. Do you see two entries for one send? Fix 5.

The 5 usual causes and fixes

Fix 1: The submission was not accepted

A message that fails validation or is flagged as spam is not an accepted submission, so it is not saved. Send a test with valid data and see whether it appears.

Fix 2: Saving is off for that form

Check that saving is switched on for the individual form, and that new entries are being saved in the general settings. Also check the form is not set to skip storing.

Fix 3: Contact Form 7 is not active

If Contact Form 7 is deactivated, nothing is captured. Activate it, and look at the status line of the saving plugin, which should say it is active.

Fix 4: A field, file or IP address is empty

Some details only exist when the matching setting was on at the time of the submission. An IP address, for example, is only stored when you chose to store it, and only for new entries. Files can be missing because of a size limit, a blocked file type, or a folder that cannot be written to. A diagnostics screen shows the reason.

Fix 5: Two entries for one submission

Two entries that arrive more than a few seconds apart are not treated as duplicates, and an entry can also be doubled by an import. Check the dates on both entries.

How to avoid it next time

  • Test with a real submission after setting up each form.
  • Check the diagnostics screen after a hosting or plugin change.
  • Decide how long to keep personal data and use the privacy tools.
  • Export a backup before big changes.

If you want entries in one screen

We built Database for Contact Form 7 to save accepted submissions with search, export, notes and a diagnostics screen. It works with Contact Form 7 only. See the store page and the documentation to check what it does before you decide. The fixes above work without it.

Sources

Keep reading

More guides

Need a hand with this?

Tell us what is happening. We reply with honest next steps.

Talk to us