WordPress.org

Ready to get started?Download WordPress

Plugin Directory

NGP Forms

Integrate NGP "Classic" (NGP VAN) donation, signup, and volunteer forms with your site.

Usage

Place this short tag on the appropriate page or article:

[ngp_show_donation]

You can set custom amounts for the donation amount in two ways:

  1. Put the amounts in the embed tag: [ngp_show_donation amounts="50,250,1000"]
  2. Put the amounts in a GET querystring: http://mycamapign.com/donation?amounts=50,250,1000

If you want to have a default donation amounts, put them in the embed tag and then override it with a querystring amounts when you need to.

You can source an article in two ways:

  1. Put source in the embed tag: [ngp_show_form source="hard-hitting-ad"]
  2. Put the source in a GET querystring: http://mycamapign.com/donation?source=hard-hitting-ad

If you want to have a default donation source, put it in the embed tag and then override it with a querystring source when you need to.

You can set custom thanks URL for the donation process by putting the url in the embed tag:

[ngp_show_donation thanks_url="/thanks-for-your-donation"]

The donations thanks URL defaults to: /thank-you-for-your-contribution

You can turn off the custom amount field:

[ngp_show_donation custom_amt_off="true"]

Careful!

If you turn off the custom amount field and you're using the Donation Invite form, you'll have constituents entering amounts that can't be found in the form and don't have a chance of getting placed in a custom amount field!

Donation Suggested jQuery

We use the following on our donation pages to make sure that the user understands that the radio buttons and the input field are for the same thing. If the user doesn't support javascript and the custom field holds a value, it always overrides whatever's selected in the radio buttons.

$('.ngp_custom_dollar_amt').keyup(function() {
    if($(this).val()!='') { $('.Amount').attr('checked', false); }
});
$('.Amount').mouseup(function() {
    $('.ngp_custom_dollar_amt').val('');
});

[ngp_show_volunteer]

You can set custom thanks URL for the donation process by putting the url in the embed tag:

[ngp_show_volunteer thanks_url="/thanks-for-your-work-pledge"]

The volunteer thanks URL defaults to: /thank-you-for-volunteering

[ngp_show_signup]

You can set custom thanks URL for the email signup process by putting the url in the embed tag:

[ngp_show_signup thanks_url="/thanks-for-signing-up-for-incessant-emails"]

The email signup thanks URL defaults to: /thank-you-for-signing-up

Signup Extensive Options

Signup can make use of the COO API, if you happen to have credentials for that particular NGP API endpoint. This API allows you to send in less comprehensive data for signups.

You can find the three necessary pieces of information for configuring the plugin to use the COO API on the General Setting page.

When you've configured the plugin to use the COO API, you can specify what fields you want the signup embed tag to use. You must specify at least Phone or Email.

[ngp_show_signup fields="Name|Email|Phone|Zip"]

Be aware that this data will end up in your NGP consituents database without any other accompanying information if a match cannot be made to existing data.

[ngp_donation_invite_form url="/donate"]

You must set the url that the donation invite form heads to. It must be a relative URL.

If you want to have a donation source appended to the linked URL, put it in the embed tag:

[ngp_donation_invite_form url="/donate" source="invite-form"]

If you absolutely must have this invite form set custom amounts on your donation form, do it like this:

[ngp_donation_invite_form url="/donate/?amounts=10,20,30,40,50"]

Requires: 3.0.0 or higher
Compatible up to: 3.8.3
Last Updated: 2014-2-10
Downloads: 442

Ratings

5 stars
5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.