Wordpress Mailchimp Form custom checkbox Wordpress Mailchimp Form custom checkbox wordpress wordpress

Wordpress Mailchimp Form custom checkbox


I have added the link to your post where the Advanced management for forms is to be accessed in MailChimp. Here it is again

But well, its only available to paid users. You can customize every bit of the form in that place.


This should work:

<input type="checkbox" id="acceptterms" />

Then presuming your MailChimp 'Subscribe' link has an ID of 'mailchimpsubscribe' then you can do the following:

<script language="javascript" type="text/javascript"> jQuery('#mailchimpsubscribe').click(function() { if (jQuery('#acceptterms').prop('checked') == false) {return false; } }); </script>

So basically you're adding a click event to your MailChimp submit button and checking if the terms checkbox has been ticked - if not, return false so the click doesn't complete.