Form Slow to submit and redirect
-
Hi, I have three domains, all with the same configuration, and all three are experiencing the same issue, i.e. the form is slow on submit.
The theme used in all three sites is the The7. Alongside CF7 there are running the following plugins (add-ons):
- CF7 Google Sheet Connector v.4.9.2
- Contact Form 7 Extension For Mailchimp v.0.5.61
- Flamingo v.2.2.3
- HandL UTM Grabber v.2.7.22
- Honeypot for Contact Form 7 v.2.1
- Redirection for Contact Form 7 v.2.6.0
The Contact Form 7 plugin itself is on version 5.5.6
On top of that, I have also the following two filters in the child theme’s functions.php file, to make sure that only legit phones are being submitted. Kindly note that the phone regex is a valid one, appropriately created for our locale.
add_filter('wpcf7_validate_tel', 'custom_phone_validation', 20, 2); add_filter('wpcf7_validate_tel*', 'custom_phone_validation', 20, 2); function custom_phone_validation($result, $tag) { $type = $tag->type; $name = $tag->name; if($name == 'Telephone') { $value = $_POST[$name]; if(!preg_match("/^(2)[0-9]{9}$|^(69)[0-9]{8}$/i", $value )){ $result->invalidate($tag, "Invalid phone format."); } } return $result; }
Upon the form submission, it takes anywhere from 6 to 15 seconds for the form to send the data to the appropriate email addresses according to the configuration, to Google Sheet, and to redirect to the thank-you page.
Would you kindly assist us with this? We would like to make it complete these actions as much quicker as possible. Ideally it should take no more than 4-5 seconds tops.
The page I need help with: [log in to see the link]
- The topic ‘Form Slow to submit and redirect’ is closed to new replies.