Compare new and old field values on form submit
I've made a booking inquiry form on a client's site that includes a date field. I'd like to compare the newly submitted date value to the values in all older entries from the form and send a notification email to the client if the date is a duplicate. I've gotten this to work with CPT postmeta, but Formidable entries seem to work differently. I can't use form validation because I don't want to prevent the form from being submitted
Is there a way to access the entries as a collection of objects (like WP_Query) or arrays?
The Formidable shortcode function "get_form_results" would be perfect if it didn't package the entries in HTML, so if there's a native function/method I've missed, I'll happily use it.
I'd prefer to avoid direct DB queries, but if that's the only way, I'll deal with it. Thanks!