• Resolved inspry

    (@inspry)


    Hello Fluent Forms Support Team,

    I hope this email finds you well.

    I’m reaching out to inquire about the possibility of disabling reCAPTCHA at runtime for forms created using Fluent Forms. We have a specific requirement where we need to control the visibility of reCAPTCHA based on certain conditions or events occurring during form submission.

    Could you please provide guidance on whether there's an existing feature, hook, or method available within Fluent Forms to achieve this functionality? If not, could you suggest any workarounds or custom solutions that we could implement to accomplish this task?
    We used following hook. It did hide the recaptcha field but it was still validating it.
    
    
    
    
    
    add_filter(
    
    'fluentform/has_recaptcha',
    
    function ( $isSpamCheck ) {
    
    return false;
    
    },
    
    20,
    
    1
    
    );
    
    add_filter(
    
    'fluentform/akismet_check_spam',
    
    function ( $isSpamCheck, $form_id, $formData ) {
    
    return false;
    
    },
    
    20,
    
    3
    
    );
    
    add_filter(
    
    'fluentform/rendering_form',
    
    function ( $form ) {
    
    foreach ( $form->fields['fields'] as $index => $field ) {
    
    if ( in_array( $field['element'], array( 'recaptcha', 'hcaptcha', 'turnstile', 'captcha' ) ) ) {
    
    \FluentForm\Framework\Helpers\ArrayHelper::forget( $form->fields['fields'], $index );
    
    }
    
    }
    
    return $form;
    
    },
    
    20,
    
    1
    
    );

    Any insights or assistance you can provide on this matter would be greatly appreciated.

    Thank you for your time and support.

    Best regards,

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Amimul Ihsan Mahdi

    (@amimulihsanmahdi)

    Hello There,

    I am afraid Fluent Forms does not provide an option to disable the recaptcha at the runtime. The feature you are looking for requires custom workaround and providing which falls outside of our support scope.

    Thank you

    CheckView

    (@checkview)

    Hi Amimul,

    Thanks for letting us know. That is unfortunate as every other major form provider (Formidable, Ninja, CF7, Gravity, etc.)( has a way to do this. Please definitely consider this as something to pass along to the dev team. For now, we will tell our customers that they cannot use our WordPress automated testing platform with Fluent Forms and Recaptcha since we have no way to bypass properly.

    Thanks again

    Hi @checkview , I’ve having a similar issue but with Gravity Forms and preventing the recaptcha requirement at runtime. You mentioned in your last comment that Gravity has a method for this – I’ve searched everywhere, but can’t find it – please could you elaborate on how you’d prevent the recaptcha from loading at runtime in certain situations with Gravity Forms?

    @chiefwigs1982 Unfortunately for v2, we could find no way to disable it ??

    For v3, we ended up modifying the challenge score per the browser session which works pretty well:

    add_filter(
    'fluentform/recaptcha_v3_ref_score',
    function ( $score ) {
    return -8;
    },
    99,
    1
    );

    I hope that helps!

    ChiefWigs1982

    (@chiefwigs1982)

    That’s great, thanks for the speedy reply! ??

    Of course!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.