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

Gravity Forms Volunteer Hours Log & Milestones Setup Guide

Updated 10 min read Gravity Forms Fields & Inputs
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. Build the hours form
  5. Number of hours or start and end time
  6. Rules
  7. How the hours are protected
  8. Approve or reject hours
  9. Notifications
  10. Merge tags
  11. Totals per volunteer, program and period
  12. Milestones and certificates
  13. The volunteer’s own hours
  14. Export
  15. Privacy and data
  16. Frequently asked questions
  17. Can a volunteer log hours for someone else?
  18. Why does a volunteer’s total not include their latest log?
  19. Can I count hours from more than one form?
  20. Does it work with AJAX and multi-page forms?
  21. What happens to hours logged before the license was active?
  22. Can volunteers see a leaderboard?

Video walkthrough

Gravity Forms Volunteer Hours Setup Guide: Log Hours, Approvals, Milestones & Certificates
Video setup guide: Gravity Forms Volunteer Hours Watch on YouTube

The Gravity Forms Volunteer Hours Log & Milestones add-on turns a Gravity Forms form into a volunteer hours log. Volunteers log their time as a number of hours or as a start and end time. Your server works the hours out again, checks them against your rules and stores them with the volunteer’s e-mail, name, program and activity date. A coordinator approves or rejects each log, and only approved hours count towards the totals per volunteer, per program and per month, quarter or year. Milestones such as 25, 50 and 100 hours are celebrated once per volunteer with a Gravity Forms notification and a printable certificate, and every volunteer can see their own total on a “My volunteer hours” page. This guide covers installation, the form settings, approval, totals, milestones, the volunteer page, export and the questions coordinators ask most.

The approval queue in Forms, Volunteer Hours: hours waiting for approval with the date, volunteer name and e-mail, program, hours, form and entry, check boxes, a note field and the Approve selected and Reject selected buttons
The approval queue: tick the logs to approve or reject, add a note for the volunteers and confirm.

What you need

  • WordPress 6.5 or newer and PHP 7.4 or newer.
  • Gravity Forms 2.9 or newer (tested with 2.9 and 3.1).
  • A GravityExtra license key for this add-on.
  • A form with an Email field for the volunteer and either a Number field for the hours or two Time fields for the start and end time. A Name or Single Line Text field for the name, a Date field for the activity date and a Drop Down, Radio Buttons, Single Line Text or Hidden field for the program are optional and recommended.

Install and activate

  1. Download the add-on zip from your GravityExtra account and upload it in Plugins → Add New → Upload Plugin.
  2. Activate Gravity Forms Volunteer Hours Log & Milestones.
  3. Open Forms → Settings → Volunteer Hours, paste your license key and click Activate License.

Until the license is active the add-on does nothing: the form saves plain entries without hours data, the settings show only the license box and the volunteer page and certificate links are not served.

Build the hours form

Create a new form, or open the form your volunteers already use, and add these fields:

  • Volunteer (Name or Single Line Text) and Email. Totals are kept per e-mail address, so the e-mail is the volunteer’s identity across all your hours forms.
  • Date for the day of the activity. Without a Date field, the hours count on the day the form was sent, in your site’s time zone.
  • Program as a Drop Down or Radio Buttons field listing your programs or projects: food bank sorting, community garden, homework club, events. The choice label is stored, so reports read naturally.
  • Hours as a Number field, or a Start time and End time as two Time fields.
  • Anything else you want to know, such as a short description of the work.

Then open Settings → Volunteer Hours on the form, tick Log volunteer hours with this form and pick the fields in the drop-downs. Save the settings. You can use several hours forms, for example a quick sign-out form at the warehouse and a longer form for event days; all their hours add up per volunteer.

Number of hours or start and end time

With A number of hours, volunteers type the hours into the Hours field: 2.5 means two and a half hours. With Start and end time, the add-on works the hours out from the two Time fields. If you also pick an Hours field in this mode, the add-on fills it in while the volunteer types and makes it read-only, so volunteers see the hours before they send the form. A shift that ends after midnight can be logged when Shifts past midnight is ticked: 10:00 pm to 1:30 am then counts as 3.5 hours.

Rules

  • Most hours in one entry (default 12): longer logs are refused with a message asking the volunteer to log them as separate entries.
  • Round to the nearest 5, 15 or 30 minutes, or no rounding.
  • Refuse activity dates in the future (on by default).
  • Oldest activity date: for example 60 days, so that hours are logged while they are still easy to check. 0 allows any date.
  • Approve automatically up to a number of hours: short logs are approved at once and longer ones wait for a coordinator. Leave it empty to approve everything by hand.
  • Use the account e-mail of a logged-in volunteer (on by default): when a volunteer is logged in, their hours are always saved under their account e-mail, even if they typed another address.

How the hours are protected

Gravity Forms saves what the browser sends. That is fine for a name, but hours decide totals, milestones and certificates, so the add-on never trusts the browser with them. When the form is submitted, the server reads the posted values the way Gravity Forms does, works the hours out again from the Hours field or the two times, applies the rounding and checks the limits and dates. The result is written back into the Hours field before Gravity Forms saves the entry, so the entry, the totals and every report show the same number.

If the Hours field of a start and end time form was changed in the browser, the form is not accepted and shows the correct hours, for example “Your start and end time come to 3.5 hours”. Fields that are not part of the form, such as an attempt to post an approval status, are ignored: every new log starts as waiting for approval unless your own automatic approval rule applies.

Approve or reject hours

Go to Forms → Volunteer Hours. The Approval queue lists every log that is waiting, with the date, the volunteer, the program, the hours and a link to the entry. Filter by form, program or dates, tick the logs you have checked, type an optional note for the volunteers and click Approve selected or Reject selected.

You can also decide on one log from its entry screen. The Volunteer hours box shows the hours, date, volunteer, program, status and the volunteer’s approved total, with Approve hours and Reject buttons and a note field. Approving needs the Gravity Forms permission to edit entries; the queue and totals need the permission to view entries.

If an administrator edits an entry and changes the hours, the date or the program on the entry screen, the add-on works the hours out again from the saved entry. The date rules apply to volunteers only, so you can correct an old log.

Notifications

The add-on adds three events to the Event list of Gravity Forms notifications:

  • Volunteer hours approved: sent when a log is approved, by a coordinator or automatically.
  • Volunteer hours rejected: sent when a log is rejected. Add the coordinator note with {volunteer:note}.
  • Volunteer reached a milestone: sent when the volunteer’s approved total passes a milestone.

Set the Send To address of these notifications to the volunteer’s Email field. Your usual “form is submitted” notifications still work, for example a message to the coordinator that new hours are waiting.

Merge tags

  • {volunteer:hours} the hours of this entry, as worked out by the server
  • {volunteer:status} waiting for approval, approved or not approved
  • {volunteer:note} the coordinator’s note
  • {volunteer:program} and {volunteer:name}
  • {volunteer:total} the volunteer’s approved total and {volunteer:pending} the hours waiting for approval
  • {volunteer:milestone} the milestone being celebrated
  • {volunteer:certificate_url} the signed link to the certificate for that milestone
  • {volunteer:my_hours_url} the signed link to the volunteer’s own hours

The key after the colon is always a word, so these tags never clash with Gravity Forms’ own field merge tags such as {Volunteer:1}.

Totals per volunteer, program and period

The Totals tab: approved hours, volunteers, approved entries and hours waiting for approval, a table of approved hours by volunteer with milestone badges, and tables by program and by month
Totals by volunteer, by program and by period, filtered by form, program and dates.

The Totals tab of Forms → Volunteer Hours shows the approved hours, the number of volunteers with approved hours, the approved entries and the hours still waiting. Below, three tables break the hours down by volunteer (with their milestones), by program and by period. Choose months, quarters or years and narrow the view by form, program and a date range: the numbers a school, a funder or your annual report asks for.

Only approved hours count. Logs waiting for approval are shown apart, and rejected logs, entries in the trash and entries marked as spam never count. Totals are worked out on your server every time the screen opens, from the stored hours of each entry, so a correction on one entry shows up everywhere at once.

Periods follow your site’s time zone in Settings → General. A log sent at 11:30 pm on the last day of the month counts in that month even when your server keeps time in UTC. When the form has a Date field, the activity date is used instead.

Milestones and certificates

In Forms → Settings → Volunteer Hours, list your milestones in hours, separated by commas: 25, 50, 100 is the default and you can add 250 or 500. When a volunteer’s approved total passes a milestone, the add-on records it and sends the notifications set to the Volunteer reached a milestone event, once. If one approval passes two milestones, for example a bulk approval from 24 to 106 hours, both are sent, lowest first. A milestone is never sent twice, even if hours are later rejected and approved again.

Add {volunteer:certificate_url} to the milestone notification. The link opens a printable certificate with your organisation name, the volunteer’s name, the milestone, the date it was reached and the name and role of the person signing, set in the same settings section. Volunteers can print it or save it as PDF from their browser. The certificate is only shown for a milestone the volunteer has really reached.

The volunteer’s own hours

The My volunteer hours page for one volunteer: approved hours, hours waiting for approval and hours to the next milestone, the milestones reached with certificate links, hours by program and by year, and recent activity with the status of each log
A volunteer sees only their own hours, milestones and certificates.

Create a page, for example “My volunteer hours”, and choose it as My volunteer hours page in Forms → Settings → Volunteer Hours. At the end of that page the add-on shows the volunteer’s approved hours, the hours waiting for approval, the hours to the next milestone, the milestones reached with certificate links, the hours by program and by year, and the recent logs with their status.

  • Logged-in volunteers see their own hours, found by their account e-mail.
  • Everyone else uses the signed link from {volunteer:my_hours_url}, which you can add to the approved and milestone notifications.

A volunteer only ever sees their own hours. The signed link carries the e-mail and a signature made with a secret key on your site; a link whose e-mail or signature was changed is refused with an error and shows nothing. The pages are not cached, are marked so that search engines do not index them, and do not pass the link on to other sites. To stop every link sent so far, tick Make a new link key when I save in the settings and save. Without a chosen page, the signed link opens a plain page with the same panel.

The My volunteer hours page on a 390 pixel wide phone screen, with the totals, milestones and recent activity stacked
The hours page on a phone.

Export

On Forms → Volunteer Hours, Export hours log (CSV) downloads every log in the current filter with the date, volunteer, e-mail, program, hours, status, note, form and entry ID. Export totals (CSV) downloads one row per volunteer with their approved hours in each month, quarter or year and a total column, ready for a school or a funder. Cells that a spreadsheet could read as a formula are written as plain text. Exports need the Gravity Forms permission to export entries.

The hours, status and program are also entry columns, so you can show and filter them in the Gravity Forms entry list and include them in the normal Gravity Forms entry export.

Privacy and data

  • Everything is stored in your own WordPress database as Gravity Forms entry data. The add-on makes no outside connection beyond the license and update checks with GravityExtra.
  • Deleting an entry removes its hours from every total.
  • Uninstalling the add-on removes its settings, the link key and the record of milestones sent. Entries and their hours stay.

Frequently asked questions

Can a volunteer log hours for someone else?

A logged-in volunteer always logs under their own account e-mail. A visitor can type any address, which is why hours wait for a coordinator unless you choose automatic approval for short logs.

Why does a volunteer’s total not include their latest log?

The log is waiting for approval. Approved hours count at once; the volunteer page shows waiting hours separately.

Can I count hours from more than one form?

Yes. Totals are per e-mail across every form with the hours log switched on, and you can filter the totals by form.

Does it work with AJAX and multi-page forms?

Yes. The hours are checked on the page that holds the fields and again when the form is sent.

What happens to hours logged before the license was active?

They were saved as plain entries without hours data and are not counted. Ask the volunteers to log them again, or re-enter them yourself.

Can volunteers see a leaderboard?

Not in version 1.0. Each volunteer sees only their own hours; coordinators see everyone in the Totals tab.

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