How to Save to Database Contact Form 7 Submissions

Contact Form 7 is one of the most popular WordPress plugins in the world, with over 5 million users. In this tutorial I will show you how to save Contact Form 7 submissions to the database. You will be able to see all these messages in the WordPress dashboard.

This way important messages won’t be lost because of some technical difficulties.

To get started, you will have to install a free plugin from the developer of Contact Form 7. It is called Flamingo, and it is used by only 700,000 users, which is a lot less than the 5+ million users of CF7.

Open the Contact Forms page and then Edit your contact form.

Flamingo will work right out of the box without any configuration only if your contact forms have the default input field names: your-subject, your-name and your-email.

Contact Form 7 Form with Default Field Names

If you made any changes to these field names, you will have to make some small adjustments.

Contact Form 7 Form with Custom Field Names

Open the Additional Settings tab and add the following 3 lines of code.

flamingo_email: "[the-email-field]"
flamingo_name: "[the-name-field]"
flamingo_subject: "[the-subject-field]"

Adjust the field names according to the ones in your contact form.

Contact Form 7 Additional Settings

You can also combine the values from two or more fields. If you have separate fields for First and Last name, then you can combine them like so.

flamingo_name: "[first-name-field] [last-name-field]"

If you have many forms, you will have to repeat this process for all. Make sure that you are using the correct field names for each form.

If everything was implemented correctly, you should start seeing your form submissions in your Dashboard, in Flamingo > Inbound Messages.

Contact Form 7 Flamingo Inbound Messages

Test your contact forms to make sure that everything works.

I also have a tutorial on How to Stop SPAM in Contact Form 7 with Akismet.

Previous Post

How to Stop Spam in Contact Form 7 with Akismet

Next Post

Add Breadcrumb Trail in WordPress with Breadcrumb NavXT

Be the first to comment

Leave a Reply or Comment

Your email address will not be published.