• Resolved Riddhi Mehta

    (@riddhiehta02)


    Hello Team,

    I am using this plugin with contact form 7.

    Is not possible to make the GDPR checkbox as not “required” option.

    as we have had users not ticking the checkbox then also being able to submit the form.

    I have try to remove the filter which is used for the validation of the check box. But The filter was not removed.

    add_filter(‘wpcf7_validate_wpgdprc’, array(CF7::getInstance(), ‘validateField’), 10, 2);

    I want to remove this filter in my function.php file. I want No more validation for the check box.

    It is possible? Can you Please help me out for this as soon as possible.

    Thanks,

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Riddhi Mehta

    (@riddhiehta02)

    Hello Team,

    I found the solution for this. Just use that extend file in the function.php and you can remove that filter. After that if user can not check the GDPR cehck box then also, form will submitted successfully.

    Use this code, in your fucntion.php

    use WPGDPRC\Includes\Extensions\CF7;

    remove_filter( ‘wpcf7_validate_wpgdprc’, array(CF7::getInstance(), ‘validateField’) );

    This solved my problem. I hop It useful for others too…!!!

    @riddhiehta02; Please do note this is against the GDPR law. Users need to give consent in order to submit the form.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 “Required” check box option’ is closed to new replies.