Check if entry already exists
-
We are using the CF for our workers to submit invoices.
The invoice number is based on 3 fields in the CF
Job, Service number, User-id
What I like to do is add a CF custom_validation_filter to check that the worker has not submitted the same invoice number before and we are getting duplicates in our accounts system so easy to catch this when the worker submits the form.As the Advanced Contact form 7 DB records all entries in its wp_cf7_vdata_entry table,
What I’m looking to see if you have code that can search the wp_cf7_vdata_entry table for match entries from the new form data letting me raise an error if there is a match.
- The topic ‘Check if entry already exists’ is closed to new replies.