• Resolved Chritchan

    (@chritchan)


    I have custom forms on my websites and i would like show the consent privacy-policy checkbox.
    I’ve put it by myself by doing this :

    <div class="custom-control custom-checkbox">
    <input type="checkbox" class="form-control custom-control-input" id="privacy-policy" name="privacy-policy">
    <label class="custom-control-label" for="privacy-policy"> J’accepte <a href="https://sba.aedesit.com/charte-de-vie-privee__trashed/">les conditions et la politique de confidentialité</a>.</label>
    </div>

    and in my php code this :

    if (isset($_POST['privacy-policy']) && $_POST['privacy-policy'] === 'on') {
    $dataSubject = gdpr('data-subject')->getByEmail($_POST['email']);
    $dataSubject->giveConsent('privacy-policy');
    }

    but this returns me an error :
    Class gdpr.data-subject does not exist

    Can you tel me the correct method to implement this to a custom contact form ?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi there!

    Thanks for the bug report! It looks like the alias for the data subject manager class is missing. I will re-add it and let you know – should be around tomorrow or so.

    Thread Starter Chritchan

    (@chritchan)

    Hi there,
    Have you fixed the probleme ? do you want more details ?

    Hi there!

    Sorry about the delay. I’ve pushed the update live and this should solve the problem. If not, please let me know!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Form’ is closed to new replies.