Regardless of what gets you excited about progressive politics - whether it's health care reform, or making college affordable, or a clean energy future - the chances are pretty good that you've encountered a signup form, contribution form, or petition. These forms, which political campaigns use to gather supporters and survey their volunteers, are just about ubiquitous today.
At NGP VAN, we work hard to give our clients beautiful, user-friendly forms that increase conversion rates. Our solution is known as ActionTag, and it's used by progressive campaigns up and down the ballot.
ActionTag is based on an important insight. While digital organizers use our cutting-edge Online Actions product to build sophisticated forms, they need to make those forms available to end users on a wide variety of websites - anywhere from a simple Wordpress blog to a large, professionally-built campaign website.
The key is an API which our Online Actions application makes available to ActionTag. If you use Firebug (or a similar tool) to inspect a page that features an ActionTag form as it loads, you'll notice some network activity like this:
That GET request is issued by ActionTag, to retrieve what we call a "form defintion". That strange number you see there (-323668...) is the formId, which uniquely identifies each form in our system.
Now take a closer look at (a piece of) one of these form definitions:
Astute observers may note the remarkable similarity between this form definition and the Drupal Form API. That similarity is no mistake! When we started designing this data contract, we looked around to see what other solutions existed for general-purpose form rendering. It turns out that Drupal has been doing this job, for untold number of sites and even more forms, for well over a decade. Inspired by Drupal's tremendous technical success, we decide to create a basic data contract that suited our purposes, and make it available via a simple, JSON-formatted REST API.
This approach has worked out just as well as we hoped. ActionTag forms are used in every corner of the progressive movement. What started out as a bold experiment in helping organizers find supporters and raise money has become more powerful still. We recently added advocacy capabilities to ActionTag, so that progressive activists can lobby key decision makers - in Congress, the executive branch, and beyond - and we can point to a robust, time-tested open source CMS for a lot of inspiration in developing this data contract. As it happens, the Drupal Form API data contract is just one component of this very sophisticated app - we'll have a lot more to say about how rigorously we've optimized and fine-tuned ActionTag, in future blog posts.
Care to join us? We're always looking for talented engineers. We have challenging problems, incredible clients, and all the free snacks you want. Join our team at https://www.ngpvan.com/careers, today!