Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a Mailchimp signup form #14

Open
neilbradley opened this issue Apr 21, 2015 · 0 comments
Open

How to use a Mailchimp signup form #14

neilbradley opened this issue Apr 21, 2015 · 0 comments

Comments

@neilbradley
Copy link

Hi there,
I'm not sure if i'm missing something obvious... I'm setting up a Frontend Email Form that uses the Mailchimp service to subscribe an email address.

I have the frontend form as follows, but i'm not sure how to 'connect' this up to the Newsletter parcel that I created?

    {% if email is not defined %}

        {% set email = craft.postmaster.email() %}

    {% endif %}
    <form action="" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" target="_blank" class="input-group" data-abide>
      {{ getCsrfInput() }}
      <input type="hidden" name="action" value="postmaster/forms/send">
      <input type="hidden" name="redirect" value="some/path/goes/here">
      <input type="hidden" name="enabled" value="1">

      <input type="email" id="toEmail" name="toEmail" value="{{ email.toEmail }}" placeholder="Your Email Address" required />
      <small class="error">An email address is required.</small>
      <button type="submit" class="button small" role="button" aria-label="submit form">Submit</button>
    </form>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant