Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.06 KB

File metadata and controls

37 lines (28 loc) · 1.06 KB

silverstripe-userforms-mailchimp

Mailchimp signup field for userforms

(Screenshot is out of date)
Screenshot

First install using composer composer require webfox/silverstripe-userforms-mailchimp

Then add your API key (and proxy details if required) to your config.yml

EditableMailchimpSubscribeField:
  api_key: '...'
  proxy: false
  proxy_url: 127.0.0.1
  proxy_port: 8080
  proxy_ssl: true
  proxy_user: 'username'
  proxy_password: 'password'

Next up add the "EditableMailchimpSubscribeField" field to your form.

If you haven't already add three fields - "Email", "First Name", "Last Name" (name them whatever you want they just need to exist).

Now click show options on the "EditableMailchimpSubscribeField". Select the list you wish to subscribe users to Select the Email Field Select the First Name Field Select the Last Name Field

Save and publish and laugh away.

In the submission and submission email there are three possible values that should be pretty obvious what they are doing:

  • Subscribed
  • No
  • Failed (Error Message)