Require GDPR consent checkbox?
-
I modified a signup to be GDPR friendly. Checkbox below was suggested in this forum. But the signup will process without the checkbox being checked. Not good. How do I make the checkbox required for the form to submit?
<form action="//example.com/subscribe/post?z=4321&y=4321" method="post" id="mc-embed-subscribe" name="mc-embed-subscribe-form" class="validate" target="_blank" novalidate> <div id="mc_embed_signup_scroll"> <input type="email" value="" name="EMAIL" class="email" id="mce-EMAIL" placeholder="email address" required><label><input type="checkbox" name="GDPR_CONSENT" value="1" required> I agree to have my personal information transferred to MailChimp.</label> <div aria-hidden="true"><input type="text" name="4321" tabindex="-1" value=""></div> <div> <input type="submit" value="Subscribe" name="subscribe" id="mc-embed-subscribe" class="button" /> </div> </form>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Require GDPR consent checkbox?’ is closed to new replies.