🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!

Gravity Forms Food Bank Referrals & Vouchers Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. Who it is for
  2. What you need
  3. Install and activate
  4. How it differs from other tools
  5. Step 1: settings
  6. Step 2: agencies and people
  7. Step 3: build the referral form
  8. Step 4: the household limit
  9. Overrides
  10. Step 5: vouchers
  11. Step 6: the distribution desk
  12. Cancelling a voucher
  13. Privacy
  14. Reports
  15. Uninstall
  16. Questions

The Gravity Forms Food Bank Referrals & Vouchers add-on runs the referral and voucher system of a food bank, pantry or community larder on your own website. Registered referral agencies (advice services, schools, health visitors, housing teams) send a referral through an ordinary Gravity Forms form. The add-on checks how many vouchers the household has had recently, issues a numbered e-voucher with an expiry date and a collection centre, and e-mails the voucher PDF with a QR code to the agency. At the collection centre, food bank staff scan or type the voucher number on a distribution desk page, see the parcel size and the dietary needs, and hand the parcel out once. This guide covers installing the add-on, agencies and roles, the referral form, the household limit and overrides, vouchers, the distribution desk, privacy and reports.

Who it is for

Food banks, food pantries, community larders, church and school food projects and any charity that gives out food parcels on referral. If you work with a list of partner agencies, use paper or e-mailed vouchers today and have to answer funders’ questions about how many households, people and children you helped, this add-on moves that work onto the Gravity Forms site you already have.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. The add-on makes no outside connection beyond checking gravityextra.com for your licence and plugin updates: voucher PDFs and QR codes are made on your own server and e-mails go out through WordPress like any other site e-mail.

The add-on adds two roles and three capabilities:

  • Referral agency (role, capability gefbr_refer): can send referrals for the agency their user profile is linked to, and see that agency’s referrals and vouchers. Nothing else in the admin.
  • Food bank staff (role, capability gefbr_desk): can use the distribution desk page. They never see the reason for a referral.
  • Food bank manager (capability gefbr_manage, given to administrators): sees every referral, overrides the limit, cancels vouchers, manages agencies, reads the audit log and downloads individual referrals.

The Forms → Food Bank Referrals screen opens for anyone with the Gravity Forms view entries capability. Staff who are not managers see the Reports tab only, which holds totals and never individual referrals.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Food Bank Referrals, enter your GravityExtra licence key and press Activate License.
  • A new menu item, Forms → Food Bank Referrals, opens the staff screens, and every form gets a Food Bank Referrals tab in its settings.

Without an active licence the staff screen only shows a note with a link to the licence settings, new entries are not turned into referrals, the distribution desk and voucher downloads are off and the desk’s REST routes refuse every request.

How it differs from other tools

Several GravityExtra add-ons and Gravity Forms itself touch on parts of this job, so it helps to know which one does what:

  • Gravity Forms on its own saves every referral as an entry, but it has no idea of households, vouchers or limits. It cannot tell that two referrals from two agencies are the same family, cannot stop a fourth voucher in six months, cannot hand out a numbered voucher, and cannot stop the same voucher being used twice.
  • Our Volunteer Shifts & Sign-up Sheet fills volunteer slots: who packs parcels on Tuesday morning and who drives the van on Saturday. Food Bank Referrals is about the households you help, not the volunteers who help you, and the two work well side by side.
  • Our Gift Cards & Codes sells and redeems store credit: codes with a money balance that people spend in a shop. A food bank voucher has no money value and is never sold; it is one parcel for one household, issued by an agency within a household limit and handed out once at a collection centre.
  • Our Parking Permits add-on issues permits for vehicles in zones with a fixed number of spaces, for a term, month or year, with a warden check by plate. Food Bank Referrals counts per household over a rolling period instead of per space, keeps the reason for the referral away from front-line volunteers and reports anonymised totals for funders.

Step 1: settings

Open Forms → Settings → Food Bank Referrals. The shipped defaults suit most food banks, so you may only need to add your collection centres:

  • Vouchers per household (default 3) and Period (default 180 days): the most vouchers one household can receive in the period, counted back from today including today.
  • Voucher valid for (default 14 days): the voucher can be collected until 14 days after the day it was issued.
  • Voucher number prefix (default FB-): letters and dashes only. Numbers run on from each other and end with a check digit: FB-000001-8, FB-000002-6 and so on.
  • Same household when these match: postcode, main contact name and date of birth (all three by default). Untick a part you do not collect.
  • Remove the date of birth from the entry (on by default): once the household key is made, the date of birth is blanked in the Gravity Forms entry.
  • Collection centres: one per line. They fill the centre field of the form and are printed on the voucher.
  • Reason categories: one per line, shipped with ten common ones such as benefit delay, low income, debt and sickness. Restricted (see Privacy).
  • Parcel sizes: one per line, the most people the parcel is for, a bar and a name. The default is 1 Single, 2 Small, up to 4 Medium, up to 6 Large and Extra large above that.
  • Smallest number shown in reports (default 5, never lower) and the food bank name printed on the voucher (your site name when empty).

Step 2: agencies and people

In Forms → Food Bank Referrals → Agencies, add each partner agency with an agency e-mail address. Vouchers are e-mailed there; when the agency e-mail is empty they go to the person who made the referral. Untick Open to pause an agency without losing its history.

Then create a WordPress user for each person who makes referrals, give them the Referral agency role and, on their profile (Users → Edit), choose their agency under Food bank referrals. The Agencies tab lists the people linked to each agency by display name. Give the people who hand out parcels the Food bank staff role.

Step 3: build the referral form

Create a Gravity Forms form with these fields (labels are up to you) and put it on a page, for example Make a referral:

  • Main contact name (single line text) and an optional contact phone.
  • Postcode (single line text, or the postcode line of an Address field) and the main contact’s date of birth (Date field).
  • Adults and children in the household (Number fields) and the children’s ages (single line text, for example 4, 7, 12).
  • Dietary needs and allergies (Checkboxes, for example vegetarian, halal, gluten free, nut allergy, no cooking facilities) and optional dietary details.
  • Reason for the referral and collection centre (Drop Down fields; the add-on fills in the choices).
  • Consent (a Checkboxes or Consent field): the household agrees to the referral.

Open Form Settings → Food Bank Referrals, tick Each entry of this form is a food bank referral and choose which field is which. Add the shortcode [foodbank_referrals] under the form so agencies can see their own referrals on the same page.

The food bank referral form as a referral agency sees it: main contact name, phone, postcode, date of birth, adults and children in the household, children's ages, dietary needs and allergies as tick boxes, dietary details, a reason drop down, a collection centre drop down and a consent tick box
The referral form. Reason categories and collection centres come from the add-on settings; only registered agencies can send it.

Visitors who are not logged in, and users who are not linked to an open agency, see a short note instead of the form. A submission sent around the page is refused on the server as well. When an agency sends the form, the add-on checks that the number of children matches the ages given, that every age is 0 to 17, that the reason and centre are on your lists and that consent is ticked.

Step 4: the household limit

Each referral gets a household key: a keyed hash of the postcode, the main contact’s name and the date of birth, after removing spaces, capitals and punctuation. RV1 2AB, rv12ab and RV1-2AB are the same postcode, and Jordan Ellis and jordan ELLIS are the same name. Two agencies referring the same family therefore count against the same limit. The add-on stores only the key, never the postcode or date of birth themselves; the key is made with a secret that only your site holds.

With the shipped settings a household can receive three vouchers in 180 days. The fourth referral within that period is saved without a voucher and marked Over the limit: under review. The agency sees this straight away on the confirmation screen and in its referral list, and no voucher e-mail is sent. Once the oldest voucher is more than 180 days old it no longer counts, and the household can receive a voucher again.

The check and the voucher number happen as one locked step in the database: a referral takes a short lock with a single conditional update, counts the household’s vouchers in the period, issues the next number and saves the voucher, then releases the lock. Even if six agencies send a referral for the same household at the same moment, only the vouchers within the limit are issued.

Overrides

Sometimes a household needs more help than the policy allows. In Forms → Food Bank Referrals → Referrals, a manager types a reason next to a referral that is under review and presses Issue voucher anyway. The voucher is issued at once with the next number, marked Override, and e-mailed to the agency. The reason, the number of vouchers already in the period, the manager’s display name and the time go into the Audit log tab. Without a reason nothing happens.

Step 5: vouchers

An issued voucher has a number such as FB-000123-4: the prefix, a running number and a check digit. The check digit catches every single mistyped digit and almost every swap of two neighbouring digits, so the desk can tell a typing slip from an unknown voucher before anything is looked up.

A food voucher PDF: voucher number with a check digit, the food bank name, the main contact, household size and children's ages, parcel size, dietary needs, collection centre, last valid day, the referring agency and a QR code for the distribution desk
The voucher PDF e-mailed to the agency. The reason for the referral is never printed.

The voucher PDF shows the food bank name, the voucher number, the main contact, the household (adults, children and their ages), the parcel size, the dietary needs, the collection centre, the last valid day and the referring agency, with a QR code for the desk. It never shows the reason for the referral. A household with a child under three gets a Baby or toddler flag automatically.

The PDF is attached to the voucher e-mail, which goes to the agency only, never to the household. The agency can also download it again from its referral list, and managers from the Referrals tab. Another agency, food bank staff and visitors cannot open it.

Step 6: the distribution desk

Food bank staff open the distribution desk page (the link is on the Food Bank Referrals screen; bookmark it on the tablet or laptop at each centre). They type the voucher number in any case and spacing, scan the QR code with a barcode scanner, or scan it with a phone camera, which opens the desk with the number filled in.

The distribution desk on a tablet: a voucher number typed in and a green Valid result with the parcel size, household, dietary needs and allergies as coloured tags, collection centre, last valid day, referring agency and a Hand out parcel button
The distribution desk: check the number, see the parcel and dietary needs, hand out once.
  • Valid: the parcel size in large type, the household, dietary needs and allergies as coloured tags, the centre, the last valid day and the referring agency, with a Hand out parcel and mark collected button.
  • Already collected: when and by whom (display name).
  • Expired or Cancelled: refused, no button.
  • A number with a wrong check digit is caught as a typing slip; an unknown number says so.

Marking a voucher collected is a single conditional update: only a voucher that is issued and not expired can change, so when two desks press the button for the same voucher at the same moment, one succeeds and the other is told it has already been collected. Each collection is added to the audit log.

Cancelling a voucher

In the Referrals tab, type a reason next to an issued voucher and press Cancel voucher, for example when a family was referred twice by two agencies. The desk then refuses it, it no longer counts against the household limit, and the reason goes into the audit log.

Privacy

  • Agencies see only their own referrals. The referral list shortcode shows the referrals of the user’s agency, and voucher downloads check the agency.
  • The reason is restricted. Managers and the referring agency see it. The distribution desk page and its data never include it, and it is not printed on the voucher.
  • Household identity is hashed. The add-on keeps a keyed hash of postcode, name and date of birth, never the values; the date of birth is removed from the entry by default.
  • Reports are aggregated. Rows with fewer than five households are hidden (see Reports). Individual referrals can only be downloaded by managers.
  • No personal data in links. Voucher links use a random reference; the desk link carries only the voucher number.
  • Tell agencies and households how you use the data in your own privacy notice, and keep entries only as long as you need them. The Gravity Forms personal data tools and entry deletion work as usual; deleting an entry for good also deletes its referral.

Reports

The Reports tab shows, for the months you choose (the last twelve by default), the households, people and children helped and the vouchers issued and collected, by the month the voucher was issued and the referring agency. A household is counted once per row, and once in the line for the whole period. Refused and cancelled referrals are not counted.

The reports screen: households, people and children helped and vouchers issued and collected by month and referring agency, with small rows shown as fewer than 5 and their figures hidden, and a reasons table for managers
Reports by month and agency. Rows with fewer than five households are hidden.

To protect privacy, a row with one to four households shows <5 and hides its other figures. When that leaves a single hidden row in a month, one more row of the same month is hidden too (shown with a dot), so the small row cannot be worked out by subtracting the others. Download CSV (totals) exports the same table with the same rules. Managers also see the households by reason for the whole period, with the same rule, and can download every individual referral from the Referrals tab.

Uninstall

Deleting the add-on from the Plugins screen removes its four tables (agencies, referrals, audit log and the counter that holds the lock and the voucher sequence), its options including the secret used for household keys, the two roles, the capabilities and the agency links on user profiles. Your forms and entries are kept.

Questions

  • Can a household be referred by two agencies? Yes. Both referrals count against the same household limit, because the household key does not depend on the agency.
  • What if a postcode is typed wrongly? Then the household key is different and the limit is counted separately. Agencies can check the details with the household before sending.
  • Can we use only the postcode? Yes: untick name and date of birth in the settings. Fewer parts means families at the same address count together.
  • Can households apply themselves? No. The form is for registered agencies; this is the referral model most food banks use.
  • Does it work offline? The desk needs a connection to your site. Keep the voucher numbers printed by agencies for a paper fallback and mark them collected later.

Still need help?

Our support team answers tickets every day, usually within a few hours.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr