Contact Form DB
Database entries - form validation (2 posts)

  1. embleme
    Posted 2 years ago #


    I would like to know if it is normal that the database is filled even if the valadation returns error... example :
    The field name is required, so if I forget to put my name and I press the submit button I have an alert that says, Please entre your name. Ok, so I enter my name and submit again... now I have registered correctly.
    When I go to see the database... I have 2 entries... One without the name and the other with the name!
    Is it possible to do not write in the database if the submission form is not all validated?



  2. Michael Simpson
    Plugin Author

    Posted 2 years ago #

    This is not something the CFDB can control. It is really at the mercy of the form plugin (CF7 for example) to notify listeners that a valid form is submitted. When CFDB gets notified, it has no knowledge of whether or not there were validation issues. It just assumes it is OK and saved it to the DB.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form DB
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.