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

Gravity Forms Activity Challenges & Leaderboards Setup Guide

Updated 12 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. Who it is for
  3. What you need
  4. Install and activate
  5. How it differs from other tools
  6. Step 1: build the join form and set up the challenge
  7. Step 2: build the log form and the participant page
  8. Joining and the personal link
  9. Logging and the rules behind every entry
  10. Changing an entry, and the change history
  11. Approvals
  12. Leaderboards
  13. Progress bars
  14. Milestones and badges
  15. Certificates
  16. The organiser dashboard
  17. Privacy
  18. Uninstall
  19. Questions

Video walkthrough

Gravity Forms Activity Challenges: Reading & Step Challenges with Team Leaderboards
Video setup guide: Gravity Forms Activity Challenges & Leaderboards Watch on YouTube

The Gravity Forms Activity Challenges & Leaderboards add-on runs a reading challenge, a step challenge, a distance challenge or any other activity challenge on your own website. You set the dates, the unit (minutes, books, steps, kilometres or your own), a default personal goal, optional teams and a daily limit. People join through one Gravity Forms form and log their activity through another, either with a signed personal link from their welcome e-mail or with their own login. Your server checks every entry, leaderboards show only people who agreed to appear, badges arrive at 25, 50, 75 and 100 percent of each person’s goal, and a certificate PDF is ready the moment the goal is reached. This guide covers installing the add-on, setting up the challenge and its two forms, logging and the rules behind it, edits and the change history, approvals, leaderboards and progress bars, milestones and certificates, the organiser dashboard, the CSV export and privacy.

Who it is for

Public and school libraries running a summer or winter reading challenge; schools with a reading or maths-minutes month; workplaces with a step or cycling challenge; charities and clubs running a sponsored distance or a fundraising month; gyms, scout groups and community groups. Anywhere people set themselves a goal for a few weeks, keep a simple log and enjoy seeing how they and their team are doing.

What 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: leaderboards, progress bars and certificates are made on your own server, and e-mails go out through WordPress like any other site e-mail.

Organiser screens follow the Gravity Forms permissions. The dashboard, certificates and CSV files need the view entries capability; approving or rejecting entries needs edit entries; the challenge settings live in the form settings and need edit forms. A member of staff who is not an administrator can run the challenge with just those Gravity Forms capabilities.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Activity Challenges, enter your GravityExtra licence key and press Activate License. The same screen has the Organiser name printed on certificates and at the end of e-mails (empty means your site name).
  • A new menu item, Forms → Activity Challenges, opens the organiser dashboard, and every form gets an Activity Challenges tab in its settings.

Without an active licence the dashboard only shows a note with a link to the licence settings, sign-ups and logs are not recorded, the shortcodes show nothing and the leaderboard data address answers with access denied.

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 sign-up and every log as an entry, but it has no idea of a challenge: it cannot add up a person’s minutes, refuse a day in the future or a fifth hour of reading on one day, rank people on a public board without showing their full names, or send one congratulation when someone passes half of their goal.
  • Our Volunteer Hours Log & Milestones records hours that volunteers give to an organisation, with sign-off of those hours by a coordinator and totals for reports and recognition. Activity Challenges is a time-boxed, friendly competition: a start and end date, a personal goal, teams, public leaderboards and badges.
  • Our League Results & Standings turns match results between teams into a league table with points for a win, draw or loss. There are no matches in a challenge: every person adds their own minutes, books, steps or kilometres, and the board ranks the totals.
  • Our Event Stamp Passport & QR Hunt collects a stamp for each place visited at an event or along a trail by scanning its QR code. Activity Challenges counts an amount of activity over weeks or months rather than visits to places.

Step 1: build the join form and set up the challenge

A challenge lives on its join form, so the join form’s ID is also the challenge ID you use in the shortcodes. Create a Gravity Forms form with these fields (the labels are up to you):

  • Name: a Name field (first and last) or a single line text field.
  • E-mail: the welcome e-mail with the personal link and the milestone e-mails go here. One person joins a challenge once.
  • Nickname for the leaderboard (optional): a single line text field.
  • Team (optional): a Drop Down or Radio Buttons field. You do not type the choices; the add-on fills them in from the teams you list.
  • Personal goal (optional): a Number field. It is pre-filled with your default goal, and people may raise or lower it.
  • Leaderboard agreement: a checkbox such as Show my nickname (or first name and initial) on the public leaderboard.

Open Form Settings → Activity Challenges, choose The join form of a challenge and fill in the challenge:

  • Challenge name: shown on boards, in e-mails and on certificates (empty means the form title).
  • Unit: minutes, books, steps, kilometres, or a custom unit such as laps or pages. Minutes, books and steps are whole numbers; kilometres and custom units allow up to two decimals.
  • First day and Last day: activity outside these days cannot be logged, and joining closes after the last day.
  • Default personal goal (1,000 out of the box) and an optional whole-challenge goal for the group progress bar. Without one, the group target is the sum of everyone’s personal goals.
  • Teams: one per line, optional.
  • Most per day: the highest total one person can log for one day, all entries of that day together. Empty means only the built-in ceiling of the unit, for example 1,440 minutes.
  • Changes allowed for: days after logging during which people can change an entry (3 by default; 0 means no changes).
  • Options: entries need approval before they count (off by default), leaderboards are public (on by default), and ranks-only boards (off by default).
  • Participant page: the page with the log form. The personal links in the e-mails open it. Leave it empty and the add-on uses the first published page that shows a log form of this challenge.

Then match each field in Join form fields.

Step 2: build the log form and the participant page

Create a second form with a Day field (a Date field with the date picker, or a text field in YYYY-MM-DD), an Amount field (a Number field labelled in your unit, for example Minutes read), and optionally a Book title and a Note. In its Activity Challenges settings, choose A log form of a challenge, pick the challenge and match the fields. You can have more than one log form for a challenge.

Publish a page, for example My reading log, with the personal panel and the log form:

[ge_challenge_progress id="12" person="me"] followed by [gravityform id="13" title="false"] (use your own form IDs).

The panel greets the person by first name and shows their progress bar, their four badges, a certificate button once the goal is reached and their own entries. The log form on that page carries the signed link with it, and says who is logging.

A reader's personal challenge page: a progress bar with minutes logged out of the personal goal, four milestone badges with two earned, the log form with day, minutes, book title and note, and the reader's own entries
The personal page behind the signed link: progress, badges, the log form and the reader’s own entries.

When someone sends the join form, the add-on checks that the e-mail address (or the logged-in account) has not joined this challenge already, that the challenge has not ended, that the team is one of yours and that the goal is a positive number. The participant is saved and a welcome e-mail goes out with the dates, the personal goal and an Open my challenge page button.

The link in that e-mail holds a random reference and a signature made with your site’s secret keys. Nothing in it is a name or an address, it cannot be guessed, and changing a single character makes it useless. People who are logged in to your site when they join are also recognised by their account, so they can log without the link. A link that does not verify, that belongs to another challenge, or that belongs to someone with a different account than the one logged in is refused with an access-denied page (HTTP 403).

Logging and the rules behind every entry

Every entry is checked on your server when the form is sent, whatever the browser sent. Changing the page, removing a date limit in the browser or posting the form from a script makes no difference:

  • No future days. A day that has not happened yet on your site’s clock is refused.
  • Only days inside the challenge. Days before the first day or after the last day are refused with the challenge dates.
  • Sensible amounts. The amount must be greater than zero, a whole number for minutes, books and steps (up to two decimals for kilometres and custom units), and never above the daily limit or the unit’s ceiling in one entry.
  • The daily limit. All entries of one person for one day together may not go over Most per day. The message says how much is still possible for that day.

The daily limit is counted with a single conditional update in the database: the amount is added to the day only while the day stays within the limit. Two or more entries for the same day that arrive at the same moment (a double tap, two devices, a script) cannot both slip past the limit. If the entry is not saved after all, the amount is given back to the day.

Changing an entry, and the change history

On the personal panel, entries that are still inside the edit window have a Change button for the day and the amount. The same rules apply as for a new entry, including the daily limit, and the change is only saved if nobody changed the entry in the meantime. Every change is written to the Change history with the day and amount before and after, who made it and when. Older entries can no longer be changed, and nobody can change another person’s entry: a change sent with someone else’s entry number is refused with HTTP 403.

Approvals

Tick Entries need approval before they count when you want to look at each entry first, for example in a school class or a sponsored challenge. New entries then wait in Forms → Activity Challenges → Approvals, oldest first, and show as Waiting for approval on the person’s page. They count against the daily limit straight away, so nobody can queue up more than the limit while waiting, but they do not count on boards, progress bars or badges until approved.

Approve counts the entry at once. Reject needs a reason, which the person sees next to the entry; the amount is given back to that day. A decided entry cannot be decided twice.

Leaderboards

Put a leaderboard on any page with the shortcode:

  • [ge_challenge_board id="12" type="individual" top="10"]: the top people by total.
  • [ge_challenge_board id="12" type="team"]: every team with its total, the number of members and the average per member.
  • Add numbers="hide" (or tick the ranks-only option) to show ranks, names and teams without any totals, which suits younger readers or a gentle workplace challenge. Add title="Top readers" to change the heading.
A public leaderboard page for a library reading challenge: a progress bar for the whole challenge, the top ten readers by nickname or first name and initial with their team and minutes, and a team table with total minutes, members and the average per member
A leaderboard page: the whole challenge, the top readers and the teams. Only people who agreed are listed, by nickname or first name and initial.

Only people who ticked the agreement appear on the individual board, by their nickname or by their first name and the first letter of their last name (Amelia C.). Nicknames that look like an e-mail address or a web address are not shown. Full names, e-mail addresses and logins never appear on a public page. People who did not agree still count for their team, because the team board shows team names only. Equal totals share a rank.

The boards refresh themselves every minute from a read-only data address on your own site. That address returns the same public names and, in ranks-only mode, no numbers at all. It is open only while the add-on is licensed and the challenge’s boards are public; untick Leaderboards are public to switch both the shortcodes and the data address off.

Progress bars

[ge_challenge_progress id="12"] shows the whole challenge: the total logged against the group goal, the number of participants and the days left. [ge_challenge_progress id="12" person="me"] shows the personal panel described above to the person on their own link or login, and a short note to everyone else.

Milestones and badges

Each person has four badges: 25, 50, 75 and 100 percent of their own goal. When a counted entry takes them past a milestone, the badge lights up on their page and a congratulation e-mail goes out. Each milestone is claimed with one insert on a unique key in the database, so it is e-mailed exactly once, even when several entries arrive at the same moment. A badge stays earned if a later change lowers the total.

Certificates

Reaching 100 percent sends a Goal reached! e-mail with a Download my certificate (PDF) button, and the same button appears on the personal page. The certificate shows the person’s full name, the challenge, the goal, the total logged, the day the goal was reached, the team and your organiser name. It is drawn on your server with a bundled PDF library; nothing is sent elsewhere. The certificate link is signed for that purpose only and works only once the goal is reached. Organisers can download any certificate from the dashboard.

A certificate of achievement awarded to a reader for reaching a goal of 1,200 minutes in the library's winter reading challenge, with the total logged, the day the goal was reached, the team and the library's name
The certificate PDF a participant receives on reaching 100% of the goal.

The organiser dashboard

Forms → Activity Challenges shows one challenge at a time (pick another at the top right when you run several). Tiles show the participants, the total logged, the challenge progress, the days left and the entries waiting for approval.

The organiser dashboard: tiles for participants, total minutes, challenge progress, days left and entries waiting for approval, tabs for participants, approvals and change history, CSV buttons, and a table of participants with goal, minutes logged, progress and badges
Forms → Activity Challenges: totals at a glance, every participant with progress and badges, approvals and the change history.
  • Participants: everyone with their full name and e-mail, the name used on boards (or Not shown without agreement), team, goal, total, progress, badges, a certificate link and the day of their last entry.
  • Approvals: waiting entries with Approve and Reject.
  • Change history: every change and decision, newest first, with the values before and after and who made it.
  • Participants CSV and Entries CSV: everything above for your spreadsheet or prize draw. Cells that a spreadsheet would treat as a formula are made safe with a leading apostrophe.

Privacy

  • Sign-ups and entries contain personal data. Tell people how you use it in your own privacy notice, ask for the leaderboard agreement in plain words and keep entries only as long as you need them. The Gravity Forms personal data tools and entry deletion work as usual; deleting a join entry for good also removes that participant and their entries.
  • Public boards show a nickname or first name and initial, and only for people who agreed.
  • Links carry opaque signed tokens, never names or addresses. Pages opened with a personal link are sent with no-cache and no-referrer headers.
  • Dashboard, certificates for staff and CSV files need the matching Gravity Forms capability and a nonce.

Uninstall

Deleting the add-on from the Plugins screen removes its five tables (participants, entries, daily totals, milestones and the change history), its options and its scheduled licence check. Your forms and Gravity Forms entries are kept.

Questions

  • Can people join without an account? Yes. The signed link in the welcome e-mail is their key. Logged-in members can use either the link or their login.
  • Can I run a step challenge and a reading challenge at the same time? Yes. Each join form is its own challenge with its own unit, dates, teams and boards.
  • Somebody lost their link. Open their join entry and resend the welcome notification, or ask them to log in if they have an account.
  • Can a family share one link? Each person should join on their own, so that each has a goal, badges and a certificate.

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