Prevent saving empty fields to database

[ad_1]

Hi,

I need some help with Contact Form 7. I would like to prevent saving empty fields from a contact form to the database. It needs to work to input text fields that are empty and for selects with first_as_label.

I know first_as_label is supposed to force user to choose one option and it works well but I’m using Conditional Fields for Contact Form 7 plugin so some selects are nested and not required if the user makes some specific choices. In some cases the user doesn’t need to fill that selects but they are still sent to the database.

I’m using Contact Form CFDB7 plugin to show Contact Form 7 submissions on the dashboard and those not required selects appear too, empty.

Any help is greatly appreciated.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer