• Resolved StevenP94

    (@stevenp94)


    Hello there, I’m an old user and my site is up from years. With latest upgrade I found this problems while setting checkboxes for CF7.
    I have 105 forms and I spent a lot of time activating and disactivating all of them because the gdpr acceptance checkbox is not required anymore.
    The result of this is that no more [wpgdprc] tag is in the ‘mail’ section of the cf7 forms.
    the form, when activated, contains the [wpgdprc “some text”] used to display the checkbox, but nothing is in the mail.
    I can manually update all 105 forms, but maybe this need a better solution.

    Anyway, I tried anythings but the validation for ‘required’ checkbox never comes up and I receive mails with GDPR not accepted.

    There is something I missed?
    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • I too have that same problem, did you manage to get it sorted?

    Thread Starter StevenP94

    (@stevenp94)

    I’ve changed this:

    Integration/Plugins/ContactForm.php

    line 323 (for the _mail part)

       ====>        if ( empty( $matches ) ) {
                            return;
                    }

    changed in

    		if ( ! empty( $matches ) ) {
                            return;
                    }

    and then
    line 426
    $value = $this->getAcceptedDate( isset( $data[ $this->getFieldTag() ] ) && $data[ $this->getFieldTag() ] === 1 );
    changed into
    $value = $this->getAcceptedDate( isset( $data[ $this->getFieldTag() ] ) && $data[ $this->getFieldTag() ] == 1 );

    In this way the tag for the mail part works, and the gdpr acceptance is displayed
    Hope that this can help

    • This reply was modified 2 years, 2 months ago by StevenP94.

    Absolute legend mate, that worked.

    Thread Starter StevenP94

    (@stevenp94)

    I’m happy this worked!
    I hope they will implement this in future versions

    Thread Starter StevenP94

    (@stevenp94)

    I’m happy to see that my changes was implemented into current version of plugin (2.4.1)
    No ‘thanks to StevenP for this’ neither a line on changelog, but the important things is that there is no need to make manual changes anymore.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Contact Form 7 – don’t work’ is closed to new replies.