🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
Guides & Tutorials October 31, 2026

How to Run a Gift Exchange, Random Pairs or Mentor Matching From Gravity Forms Entries

GravityExtra
How to Run a Gift Exchange, Random Pairs or Mentor Matching From Gravity Forms Entries

Every December someone in the office, the club or the family volunteers to run the gift exchange. The sign-up part is easy: a Gravity Forms form with a name, an e-mail address, a household and a wishlist takes ten minutes to build. The matching part is where the evening disappears. Names go into a hat, partners draw each other, somebody draws themselves, the whole thing starts over, and in the end the organiser knows every match and has to send a dozen careful e-mails by hand.

The same problem shows up all year round: pairing colleagues for coffee chats, matching mentors with mentees, splitting a workshop into mixed tables, or setting up study buddies for a course. This guide shows how to run all of these straight from your Gravity Forms entries, with rules, a fair random draw and private results, using the Gravity Forms Random Pairing & Group Draw add-on.

Why matching people by hand goes wrong

Matching looks simple until the first rule appears. In a gift exchange, people from the same household should not draw each other. In a buddy program, people from the same team should meet someone new. In a mentoring program, a mentor can only take two or three mentees and should not mentor someone from their own department. Each rule makes a hat draw more likely to fail, and a spreadsheet more likely to contain a mistake nobody notices until the event.

Then there is privacy. In a gift exchange the whole point is that only you know who you are buying for. If the organiser forwards a spreadsheet, or one e-mail goes to the wrong person, the surprise is gone. And with any draw people sometimes ask whether it was really random, especially when two friends end up together. A good process answers that question with a record, not a promise.

What the Random Pairing add-on does

The add-on reads the active entries of a form and draws one of four things:

  • A gift exchange — everyone gives one gift and receives one, as one big circle through everyone or as several smaller circles.
  • Random pairs — everyone gets a partner; with an odd number, one trio is formed or one person sits this round out with a friendly note.
  • Mentors and mentees — two roles come from a field, each mentee gets one mentor within the mentor’s number of places, and the best total match score wins, based on fields you choose such as interests or location.
  • Balanced groups — groups of a chosen size whose sizes differ by one person at most, spread evenly by a field such as department.

Rules apply to all four: never match people who share a value (household, team, company), never match two hand-picked people, and always match two others. You preview the draw, re-draw until you are happy and then publish. Publishing locks the draw, saves the result on every entry and lets each person find out their own match, by e-mail and on a private page, without seeing anybody else’s.

How it differs from other add-ons and from Gravity Forms itself

If you already use our Giveaways & Prize Draws add-on, the difference is the goal of the draw. A giveaway picks a few winners out of many entries. Random Pairing includes everyone and gives every person a match or a group, under rules about who may meet whom. If you use our Entry Automation add-on, that one creates, updates or deletes entries on a schedule or when something happens; it never matches people with each other. Gravity Forms itself has no feature for pairing or grouping entries. So Random Pairing is not a replacement for either add-on; it fills a gap that nothing else in your Gravity Forms setup covers.

Step 1: build the sign-up form

Use any Gravity Forms form. For a gift exchange, a good form has a Name field, an Email field, a Household field (a short text such as the family name) and a Wishlist paragraph field. For coffee buddies, add a Team or Office drop-down. For mentoring, add a radio button “I want to join as: Mentor / Mentee”, a Department drop-down, an Interests checkbox list and a number field “How many mentees can you take?”. For workshop tables, a Department drop-down is enough. Share the form, wait for the sign-ups, and you are ready to draw.

Step 2: choose the draw and the rules

Open Forms → Random Pairing and pick your form. Choose the type of draw, the name field and the e-mail field. Then add the rules. For the gift exchange, tick Never match people who share the same Household, so partners and children never draw each other. If two people should not be matched for another reason, add them as a never match pair. If a new joiner should buy for their team lead, add an always match pair; in a gift exchange the first person gives to the second.

Under Reveal, tick the fields each person may see about their match. For a gift exchange that is the wishlist; for mentoring it might be interests and location. Everything you do not tick, such as e-mail addresses and phone numbers, stays private.

Step 3: preview, re-draw and check the result

A gift exchange preview: twelve givers and who each gives a gift to, one circle through everyone, with Re-draw and Publish and lock buttons
The preview of a gift exchange: one circle through all twelve people, ready to re-draw or publish.

Press Draw a preview. You see the whole result: who gives to whom, the pairs, the mentors with their mentees and match scores, or the groups. Nothing is saved on the entries and nobody is notified yet. If you want a different result, press Re-draw. Each preview shows the random seed that produced it, and the audit log records every draw with the time and the user who made it.

The draw searches until it finds an arrangement that keeps every rule, and it tries random arrangements first so the result is fair. When the rules leave no possible arrangement, it does not quietly break a rule. It tells you why, in numbers: “6 people share the same Office (Denver), but each of them needs a partner outside it” or “9 mentees need a mentor, but the 4 mentors only have 8 places between them”. You change the rule, and draw again.

A word on fairness

The randomness comes from your server’s cryptographic random generator, the same kind used for passwords and security keys. It cannot be predicted or nudged. Because the seed of every draw is stored, the same seed with the same entries and settings produces the same result again, which makes the draw checkable after the fact. For mentoring, the add-on first looks for the best total match score and only then draws at random among equally good options, so the matches are both sensible and fair.

Step 4: publish and let everyone find out their own match

When the preview looks right, press Publish and lock. From that moment the draw cannot be re-drawn; the settings become read-only and any attempt is refused and logged. The result is saved on each entry, so you see “Gives a gift to Emma Rossi” on the entry screen and can add it as a column to the entry list.

For the e-mails, add a notification to the form with the event Random Pairing: draw published and send it to the e-mail field. The merge tag {pairing_match} puts in the person’s match with the fields you allowed, and {pairing_reveal_url} adds their private link. The notification runs once per person, so every e-mail contains only that person’s own match. Nobody, not even the organiser, has to forward anything by hand.

A personal reveal page: Hi Maya Chen, you are giving a gift to Emma Rossi, with her wishlist
The private reveal page: one person, their own match and their wishlist, nothing else.

The personal reveal page is the other half. Each link is signed with a secret key and opens a page that shows that one person their own match and the allowed fields. Changing the entry number in the link, or even one character of it, is refused. The page is not indexed by search engines and not cached. If you prefer it inside your theme, place the [gf_pairing_reveal] shortcode on a page and pick that page in the add-on settings.

Four examples

Holiday gift exchange

Twelve people from six households sign up. Rule: never the same household. Draw: one big circle, so nobody simply swaps gifts with one other person. Reveal: the wishlist. Everyone gets an e-mail with the name of the person they buy for, their wishlist and a link to their private page; the organiser only sees the overview in the admin.

Coffee buddies

Nine colleagues sign up each month. Rule: never the same team. With an odd number you choose either one trio or one person who sits out this round with a note. Next month, press Start a new round: the old round is archived in the log, its links close, and you draw again with the same settings.

Mentoring program

Four mentors and eight mentees. Mentors say how many mentees they can take; mentees and mentors pick their interests. Criteria: shared interests with weight 3 and the same location with weight 1. Rule: never the same department. The add-on gives every mentee a mentor, never over capacity, with the best total score; the preview shows each match score as a percentage. Mentors see a list of their mentees; each mentee sees only their mentor.

Workshop tables

Fourteen people from five departments, tables of four. The add-on makes two tables of four and two of three and spreads each department across the tables, while keeping a hand-picked pair apart and another pair together. Each person learns their table number and who sits with them.

Records you can show

Some groups need to prove that a draw was fair: a staff association, a school, a volunteer committee. The add-on keeps an audit log of every preview, re-draw, refused change, impossible-rules message, publish, export and new round, with the time, the user and the seed. The CSV export lists every person with their match, the round and the seed, so the result can be archived next to your other records.

Privacy and where the data lives

All of the matching happens on your own WordPress server. No names, e-mail addresses or wishlists are sent to any outside service, and the add-on makes no outside connection apart from the GravityExtra licence and update checks. The results live in your own database, on your own entries. When you uninstall the add-on through Gravity Forms, its settings, its draw history and the results saved on entries are removed, while your forms and entries stay.

Getting started

If you run any event where people need to be matched, paired or grouped, the setup takes a few minutes: install the add-on, pick your form, choose the draw and the rules, preview and publish. The setup guide walks through every option, including the merge tags, the reveal page shortcode and what each impossible-rules message means. The add-on works with Gravity Forms 2.9 and newer.

Ready to retire the hat and the spreadsheet? Get Gravity Forms Random Pairing & Group Draw and run your next gift exchange, buddy program, mentoring round or workshop draw straight from your form entries.

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