EFForg / congress-forms.js

A javascript widget which can construct plain forms that submit to a contact-congress server.
Other
5 stars 0 forks source link

Contact Congress Form Builder

This is a jQuery plugin to build the form for contacting congress

Usage

$("#form-container").contactCongress({
    bioguide_ids: ['P000197']
});

Configuration

var options = {
  bioguide_ids: ['P000197'], // An array of Bio guides
  values: { // An object map of default values for the form
    '$MESSAGE': 'Hello Mr Politician, My name is Yoghurt!',
    '$SUBJECT': 'Introduction'
  },
  labels: true // Do you want the inputs to have labels?
};

$("#form-container").congressForms(options);