Replies: 0
I have created a custom CF7 shortcode “locations / loctations*” that generates a select field with the terms of a custom post type as options. I have further added e-mail-addresses to the options values and use the custom select shortcode in the mail field (mail-to) of the contact form.
Sending the messages to the different e-mails is successful, however, in the backend the Configuration Validator keeps giving me an error message “This field has syntax errors.”
I found out that if in “wp-content/plugins/contact-form-7/includes/config-validator.php” on line 377 I add the custom form_tag ‘locations’ to the following line the error disappears:
$is_selectable = in_array( $form_tag->basetype, array( 'radio', 'checkbox', 'select', 'locations' ) );
Changing the plugin-code is not really what I want. So is there another way to avoid the config validator error for my custom email select field?