GithubHelp home page GithubHelp logo

designcity / campaign-monitor-userform Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mediabeastnz/campaign-monitor-userform

0.0 3.0 0.0 11 KB

Custom Userform Field which integrates with Campaign Monitor

PHP 100.00%

campaign-monitor-userform's Introduction

#Campaign Monitor UserForm Field Adds a custom field to UserForms which allows you to select a list from campaign monitor, set custom fields and subscribe on submission.

Installation

Via composer

composer require mediabeast/campaign-monitor-userform

#####Configuration To connect to your campaign monitor field you will need to set two fields in your config.yml.

EditableCampaignMonitorField:
    api_key: 'API KEY GOES HERE'
    client_id: 'CLIENT ID GOES HERE'

^ These setting can be found in client settings area in Campaign Monitor.

#####Customisation You can also change what type of field is actually used on the UserForm. By Default it's a checkbox field. You can change this via your config.yml. If you choose to use a dropwdown field you can add options under the Custom Options tab.

EditableCampaignMonitorField:
    defaultFieldType: 'DropdownField'

There are currently 3 extension hooks which can be useful to handle data before and after saving.

  • $this->extend('beforeValueFromData', $data)
  • $this->extend('afterValueFromData', $data)
  • $this->extend('updateLists', $data)

TODO

  • add extension points e.g. Custom fields, change field type
  • Added supoport for submission data e.g. Submission shows user was subscribed.
  • Better error message is something goes wrong

field configuration example

campaign-monitor-userform's People

Contributors

mediabeastnz avatar

Watchers

James Cloos avatar Ryan Cotter avatar Design City avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.