Skip to content

EFForg/congress-forms.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);

About

A javascript widget which can construct plain forms that submit to a contact-congress server.

Resources

License

Stars

5 stars

Watchers

6 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors