Mailchimp subscription form
Mailchimp is a marketing automation platform and an email marketing service.
In other words this Mailchimp widget will help you to collect user emails right from you website to run email marketing campaign via Mailchimp web application. Below is the live example of the widget that collects emails for Createx Studio. Switch to HTML or Pug tab to see code example and instructions.
Subscribe
<!-- Widget: Subscription (MailChimp Ajax)
Instructions how to get MailChimp action link:
1. Log in to your MailChimp Dashboard / Audience / Manage Audience / Signup forms / Embedded forms
2. In the provided code find form action link and copy it
3. Paste it to the form action attribute below
4. Also in the form code provided by MailChimp find antispam input and copy it name attribute contents
5. Paste what you have copied from name attribute to the name attribute of input with class "subscription-form-antispam"
-->
<h3 class="h6 mb-2 pb-1">Subscribe</h3>
<form class="subscription-form validate" action="mailchimp-embedded-form-atcion-link" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate>
<div class="form-group">
<div class="input-group input-group-sm flex-nowrap">
<span class="input-group-text text-muted">
<i class="fi-mail"></i>
</span>
<input class="form-control" type="email" name="EMAIL" placeholder="Your email" required>
</div>
<button class="btn btn-primary btn-sm" type="submit" name="subscribe">Subscribe*</button>
</div>
<!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true">
<input type="text" class="subscription-form-antispam" name="mailchimp-embedded-form-antispam-name-attribute" tabindex="-1">
</div>
<div class="subscription-status"></div>
<div class="form-text fs-xs mt-2">*Subscribe to our newsletter to receive early discount offers, updates and new products info.</div>
</form>
// Widget: Subscription (MailChimp Ajax)
// Instructions how to get MailChimp action link:
// 1. Log in to your MailChimp Dashboard / Audience / Manage Audience / Signup forms / Embedded forms
// 2. In the provided code find form action link and copy it
// 3. Paste it to the form action attribute below
// 4. Also in the form code provided by MailChimp find antispam input and copy it name attribute contents
// 5. Paste what you have copied from name attribute to the name attribute of input with class "subscription-form-antispam"
h3.h6.mb-2.pb-1 Subscribe
form(action="mailchimp-embedded-form-atcion-link", method="post", name="mc-embedded-subscribe-form", target="_blank" novalidate).subscription-form.validate
.form-group
.input-group.input-group-sm.flex-nowrap
span.input-group-text.text-muted
i.fi-mail
input(type="email", name="EMAIL", placeholder="Your email", required).form-control
button(type="submit", name="subscribe").btn.btn-primary.btn-sm
| Subscribe*
// real people should not fill this in and expect good things - do not remove this or risk form bot signups
div(style="position: absolute; left: -5000px;", aria-hidden="true")
input(type="text", name="mailchimp-embedded-form-antispam-name-attribute", tabindex="-1").subscription-form-antispam
.subscription-status
.form-text.fs-xs.mt-2 *Subscribe to our newsletter to receive early discount offers, updates and new products info.