Title: not save empty/null fields?
Last modified: August 8, 2022

---

# not save empty/null fields?

 *  Resolved [IT Hertz](https://wordpress.org/support/users/it-hertz/)
 * (@it-hertz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/)
 * I have a relatively complex form for which I need to prevent saving null value
   fields to the database.
 * The form in question is for registering multiple students. The number of students
   is selected by the user, with conditionally toggled sections repeated per that
   number.
    If there is only one student, I don’t need empty fields for 4+ non-existent
   students saved to the db. IOW, in this particular case, I need to not save the
   hidden field groups. Hidden groups don’t get validated and shouldn’t be saved,
   because their fields are empty (clear_on_hide function).
 * I will have subadmins who will be handling the user registration data, and having
   all those blank entries is clutter that makes viewing/editing much less convenient,
   as they have to scroll way down to get to the bottom to view other pertinent 
   data, such as user attached signature.
 * I am able to eliminate null fields via hook with the CFDB7 plugin, but I don’t
   see an update-proof way to do this with your plugin. Unfortunately, the CFDB7
   plugin does not allow for editing the db entries via admin panel, so I need your
   plugin to give my subadmins edit capability.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [Rose](https://wordpress.org/support/users/rosewp/)
 * (@rosewp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15899209)
 * Hi [@it-hertz](https://wordpress.org/support/users/it-hertz/),
 * As I replied to your latest created topic.
    Please allow me to forward it to 
   our developer and I will get back to you as soon as possible.
 * Cheers,
    Rose
 *  [Rose](https://wordpress.org/support/users/rosewp/)
 * (@rosewp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15899256)
 * Hi [@it-hertz](https://wordpress.org/support/users/it-hertz/),
 * May I know if are you using the Free or Pro version? Then we will fix and send
   you the latest one.
 * Thank you.
 * Cheers,
    Rose
 *  Thread Starter [IT Hertz](https://wordpress.org/support/users/it-hertz/)
 * (@it-hertz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15900929)
 * I’m using the free version.
 *  [Rose](https://wordpress.org/support/users/rosewp/)
 * (@rosewp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15902720)
 * Hi [@it-hertz](https://wordpress.org/support/users/it-hertz/),
 * Thanks for your patience.
    Please install this latest version to fix your issue:
   [https://www.dropbox.com/s/pttkp5255x0h4hq/contact-form-7-database-lite.zip?dl=1](https://www.dropbox.com/s/pttkp5255x0h4hq/contact-form-7-database-lite.zip?dl=1)
 * Please let me know if it works for you.
 * Cheers,
    Rose
 *  Thread Starter [IT Hertz](https://wordpress.org/support/users/it-hertz/)
 * (@it-hertz)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15905455)
 * It works perfectly, thank you!
 *  Plugin Support [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * (@ninjateamwp)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15905764)
 * Hi [@it-hertz](https://wordpress.org/support/users/it-hertz/)
 * Thank you so much for choosing our App. If it’s possible, can you leave the plugin
   with an excellent star ratings?
    [https://wordpress.org/support/plugin/cf7-database/reviews/](https://wordpress.org/support/plugin/cf7-database/reviews/)
 * Your review will motivate us to develop more plugins and have awesome users like
   you.​ 😉
 * Kind regards,
    -Bruce-

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘not save empty/null fields?’ is closed to new replies.

 * ![](https://ps.w.org/cf7-database/assets/icon-256x256.png?rev=3372951)
 * [Database for Contact Form 7](https://wordpress.org/plugins/cf7-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cf7-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cf7-database/)
 * [Active Topics](https://wordpress.org/support/plugin/cf7-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cf7-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cf7-database/reviews/)

## Tags

 * [empty](https://wordpress.org/support/topic-tag/empty/)
 * [field](https://wordpress.org/support/topic-tag/field/)
 * [save](https://wordpress.org/support/topic-tag/save/)

 * 6 replies
 * 3 participants
 * Last reply from: [Bruce](https://wordpress.org/support/users/ninjateamwp/)
 * Last activity: [3 years, 9 months ago](https://wordpress.org/support/topic/not-save-empty-null-fields/#post-15905764)
 * Status: resolved