Skip to content
This repository was archived by the owner on Mar 3, 2021. It is now read-only.

How to create a custom supporter form

Yutaka Houlette edited this page Dec 1, 2016 · 1 revision

You can create a custom supporter form from the following URL: https://commitchange.com/nonprofits/:nonprofit_id/supporter_form

A custom form is created using URL params.

What are URL params?

URL params (short for parameter) are a way of sending additional information via a URL. URL params are appended to the path of a URL and begin with a ? symbol, and each parameter is typically separated by a & symbol. Here is an example: http://cool-animals.com/search?country=australia&environment=desert. (You can read more about URLs here).

What URL params can I use?

param value example what it does
title text message=Please register your info displays a custom title at the top of the page
message text message=Howdy! displays a custom message below the title
tags comma separated tags tags=Gala donor,Vegetarian,Trekkie adds listed tags to supporter
fields commas separated fields fields=nonprofit,favorite band shows listed fields as inputs for supporters to fill out
desc_[field_name] optional description of field desc_nonprofit=Name of nonprofit you work at adds a description to the corresponding field

Example

https://commitchange.com/nonprofits/3624/supporter_form?message=Howdy&fields=Nonprofit&desc_Nonprofit

Clone this wiki locally