• Hello,

    It seems on iOS devices the CF7 form fails recaptcha v3 with the orange box stating “There was an error trying to send your message. Please try again later”. I tested extensively (using browserstack) on various devices (Andriod, iOS, Apple Desktop and Windows OS) and the forms always fail for iOS devices only. All other devices/OS work find except iOS.

    I’ve searched the forum and docs (https://contactform7.com/faq/after-submitting-the-form-i-get-an-error-message/) which I understand that google recaptcha thinks the submission is possible spam. So I tried using Takayuki Miyoshi (@takayukister) recommendation from another post of disabling recaptcha by placing the following code in in my theme functions.php and setting threshold = 0.0: (see screenshot at https://www.screencast.com/t/f76yjkV4y )

    add_filter( 'wpcf7_recaptcha_verify_response',
            function( $is_human, $response_body ) {
                    $score = isset( $response_body['score'] ) ? $response_body['score'] : 0;
                    $threshold = 0.0;
                    $is_human = $threshold < $score;
                    return $is_human;
            },
            10, 2
    );

    But I’m still getting the same issue when anyone submits the form from an iOS device “There was an error trying to send your message. Please try again later.” It seems the above code doesn’t disable recaptcha. Any suggestions on how to troubleshoot further?

    Thx,
    SW

Viewing 4 replies - 1 through 4 (of 4 total)
  • This could also be due to a conflict with your WP theme or one of the other plugins you are using.

    Switch temporarily (nothing will be lost when you switch back) to a WP default theme & disable all plugins other than Contact Form 7 to see if the problem goes away.

    If it does you can switch back to your theme & re-activate each plugin one by one to see when the problem occurs.

    It’s relatively common to have JavaScript issues on one platform that are not a problem on other platforms.

    Thread Starter stevewest15

    (@stevewest15)

    Thanks for the suggestion! I’ve switched the theme to Twenty Seventeen and disabled all plugins except CF7 and still the form won’t submit for iPhone users. Here is the page with a simple CF7 form:

    https://old.itc.edu/testing-page/

    CF7 -> Integration -> reCAPTCHA is not enabled. Any ideas why when iPhone users try to submit the above form, they are getting the orange box stating “There was an error trying to send your message. Please try again later”?

    Thx,

    SW

    Thread Starter stevewest15

    (@stevewest15)

    Even though reCAPTCHA is not enabled, after submitting the https://old.itc.edu/testing-page/ form, /feedback shows the following: https://www.screencast.com/t/Mt6wPaIX

    I’ve also deleted CF7 plugin and installed a new one and still the same issue.

    We’re running the following:

    – WordPress: 5.2.3
    – Contact Form: 7 5.1.4
    – PHP: Tested 7.2.x as well as 7.3.x

    Thx,

    SW

    Thread Starter stevewest15

    (@stevewest15)

    Any assistance is greatly appreciated. thx!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Form Submission Fails on iOS Devices’ is closed to new replies.