Viewing 13 replies - 1 through 13 (of 13 total)
  • Plugin Author Danny van Kooten

    (@dvankooten)

    Hi there,

    If you can add custom HTML to the contact form then adding a “sign-up checkbox” is as easy as adding the following piece of HTML.

    <p>
    	<label>
    		<input type="checkbox" name="mc4wp-subscribe" value="1" />
    	</label>
    </p>

    Most likely, the plugin will automatically detect the email and if you’re lucky, also the name. If not, you will need to prefix the email and name field with mc4wp- and name them the same as your MailChimp list field names.

    Example

    <input type="text" name="mc4wp-NAME" placeholder="Your name" />
    <input type="email" name="mc4wp-EMAIL" placeholder="Your email address" />

    Hope that helps!

    Hi I cant get the checkbox to work. I tried the above and it shows up fine, but nothing happens. I checked mailchimp and there is nothing added to the list.

    Please help…

    Nevermind, got it working

    Is there a way to make these fields Required?

    What I’m trying to do is modify a Conact 7 form so when they click “Accept” their info goes to Mailchimp

    <code>
    <p><b>I HAVE READ AND ACCEPT THE TERMS AND CONDITIONS ABOVE</b> (box below must be checked to register).

    <p>Acceptance [checkbox* your-acceptance exclusive “I accept.”]</p>

    <p>Click send to request your account.</p>

    <p>[submit “Send”]</p>

    </code>

    Now that I think about it, i can see why that wouldn’t work (using cf7 validation script). Perhaps as a hidden field?

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi Timfl,

    To do that, just use the [mc4wp_checkbox] in your CF7 form and leave the rest (validation, which fields are required, etc..) up to Contact Form 7.

    The MailChimp for WordPress plugin will only send the data to MailChimp if the CF7 validation is all passed.

    An alternative would be to include the “checkbox” as a hidden field.

    <input type="hidden" name="mc4wp-subscribe" value="1" />

    Adding that to your CF7 forms will send all form submissions to MailChimp.

    Hope that helps!

    Hi Danny,

    Is there a way to add accaptance checkbox (terms and conditions) to a mailchimp form?

    1. In mailchimp.com form editor
    2. And/Or in wordpress mailchimp plugin

    Because this checkbox is a must-have element in Hungary. It’s regulated by a law.

    Thanks

    Plugin Author Danny van Kooten

    (@dvankooten)

    Hi ofczi,

    Yes, there definitely is. The following piece of code in the form mark-up should do the trick.

    <p>
    <label><input type="checkbox" name="accept-terms" value="1" required /> Accept the terms & agreements?</label>
    </p>

    Hope that helps. If not, let me know!

    Thank you. That helps in wordpress sites, but what about the standard mailchimp forms. Can I set up on mailchimp.com for all list forms, to have checkbox?

    Hi, I am new to MailChimp for WordPress. I attempted to integrate MailChimp with a third party contact form (which came with the custom theme I purchased), but did not get the subscribers in the list. Here are the set of codes I wrote in the form template file;

    <input class="contact-form" type="text" placeholder="name" name="mc4wp-NAME" id="form-name"  />
    <input class="contact-form" type="email" placeholder="e-mail" name="mc4wp-EMAIL" id="form-email"  />
    
    <div>
       <label><input type="checkbox" name="mc4wp-subscribe" value="1" /> Subscribe to our newsletter?</label>
    </div>

    I also set the field labels in the MailChimp setting page to “NAME” and “EMAIL” to match up with the above codes.

    Anything wrong ???

    Thanks…

    It is me again. I tried many different ways to use the third party contact form to work with MailChimp – without success. So, I decided to go Contact Form 7 solution. It worked !

    Probably, the issue had to with the third party contact form which came with the off-the-shelf theme (Barnelli Theme). Contact Form 7 is more popular and versatile in terms of integrating with MailChimp, etc.

    Thanks – CLOSED.

    Hello. I’m trying to integrate a mailchimp checkbox with a Stripe checkout being handled by the plugin Stripe Checkout Pro (https://wpstripe.net/docs/shortcodes/stripe-custom-fields/).

    I am able to add your third party checkbox but it is not triggering the process to add to mailchimp. I assume this is because it is not technically a part of a form, but rather in the block of shortcode I’m using from the other plugin (sorry if wrong language, not a programmer).

    Is there anyway to make this all work together?

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Mailchimp Check Box ON CUSTOM CONTACTS FORMS’ is closed to new replies.