• Resolved darkmoonxarx

    (@darkmoonxarx)


    If I have a newsletter form, how would I create a checkbox for consent to the terms of the newsletter and save the consent on form submit? I have a pro version of ninja forms.
    Could it be possible in the future that mailchimp, sendinblue, any newsletter software with an API or a wordpress plugin can submit or earase an email address from a list depending on the consent option of your plugin? Any ideas or plans you have in regard to this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Fernando Claussen

    (@fclaussen)

    Hi @darkmoonxarx,

    We do have extensions in development right now. First one will be MailChimp.

    For your case right now, you could create the consent on the settings and wrap the form with the consent check function. If the function returns that consent was not given, you can prevent the form from loading and add a message explaining that the user needs to update their consent preferences.

    Or, my personal favorite…

    Add a checkbox to your form. Make that checkbox required. Look the filter that Ninja Forms have for after form submission and save the consent to the user meta.

    Something similar to
    add_user_meta( $user_id, 'gdpr_consents', 'newsletter' )

    Don’t forget that newsletter above is fictional and you should replace with whatever you have registered in the plugin settings.

    You could also add in a double opt-in to serve as a consent within MailChimp for example. I am looking at building something similar @fclaussen to get my site ready with GDPR and some other plugins (like Paid Memberships Pro checkout etc.)

    Love this plugin btw, keep it up! Has helped me a lot already!

    Plugin Author Fernando Claussen

    (@fclaussen)

    Thank you @andrewza,

    Let me know how we can make it better. There’s probably a new update coming out today.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How would I save newsletter consent?’ is closed to new replies.