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

Gravity Forms Random Pairing & Group Draw Setup Guide

Updated 9 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Install and activate
  4. How it differs from other tools
  5. Choose what to draw
  6. Gift exchange
  7. Random pairs
  8. Mentor and mentee
  9. Balanced groups
  10. People
  11. Rules
  12. Reveal: what each person sees
  13. Preview and re-draw
  14. Publish and lock
  15. CSV export and audit log
  16. Privacy and performance
  17. Troubleshooting

Video walkthrough

Gravity Forms Random Pairing Setup Guide: Gift Exchange, Pairs & Groups from Entries
Video setup guide: Gravity Forms Random Pairing Watch on YouTube

The Gravity Forms Random Pairing & Group Draw add-on turns the entries of any form into a fair draw: a gift exchange, random pairs, mentor and mentee matches or balanced groups. You set rules such as “never match people from the same household”, preview the draw, re-draw as often as you like and then publish it. Publishing locks the draw, saves the result on every entry, can e-mail each person their own match and gives everyone a private page that shows only who they are matched with. This guide covers installing it, every draw type, the rules, the reveal options, publishing, the audit log and the export.

What you need

You need Gravity Forms 2.9 or newer and WordPress 6.5 or newer on PHP 7.4 or newer. Any form works as the sign-up form: the add-on only needs a field with each person’s name, and an e-mail field if you want to send the results by e-mail. Spam and trashed entries never take part in a draw; only active entries do.

Opening the Random Pairing screen needs the Gravity Forms view entries capability. Drawing, publishing and starting a new round also need the edit entries capability, because publishing writes the result to each entry. Administrators have both.

Install and activate

  • Upload the add-on zip in Plugins → Add New → Upload Plugin and activate it.
  • Go to Forms → Settings → Random Pairing, enter your GravityExtra licence key and press Activate License.
  • A new menu item, Forms → Random Pairing, lists your forms. Each form in the form list also gets a Random Pairing link.

Without an active licence the screen only shows a note with a link to the licence settings. Drawing, publishing, the CSV export and the personal reveal pages are switched off until the licence is active again.

How it differs from other tools

People often ask whether they need this add-on next to our other add-ons, so here is the short answer. Our Giveaways & Prize Draws add-on draws winners: a few entries are picked from many, for a prize. Random Pairing does the opposite job: everyone takes part and every person is matched with someone (or placed in a group), under rules that keep certain people apart or together. Our Entry Automation add-on creates, updates or deletes entries on a schedule or a trigger; it does not match people with each other. Gravity Forms itself has no feature for pairing or grouping entries at all. Random Pairing fills exactly that gap, and it works next to both add-ons without conflict.

Choose what to draw

The draw settings: what to draw, the name and e-mail fields, gift exchange options, never-match and always-match rules and the fields each person may see
The draw settings of a gift exchange: one big circle, never the same household, one hand-picked never-match pair and one always-match pair.

Open Forms → Random Pairing and pick the form. The left column holds the settings, the right column shows the draw. Start with What to draw:

Gift exchange

Everyone gives one gift and receives one, and nobody draws themselves. Choose One big circle to link everyone in a single chain: A gives to B, B gives to C and the last person gives to A. In a single circle nobody swaps gifts with the same person, which many groups prefer. Choose Several smaller circles allowed when you have many rules: it gives the draw more freedom, and two people may then end up giving to each other.

Random pairs

Every person gets one partner: coffee buddies, walking partners, peer reviewers or study pairs. When the number of people is odd you choose what happens: Make one trio puts three people together once, and Leave one person out leaves one person without a partner for this round. That person sees a friendly note that there was an odd number of people, both on their reveal page and in the e-mail.

Mentor and mentee

Choose the Role field (for example a radio button “I want to join as”) and type the value that means mentor and the value that means mentee; the boxes suggest the values found in your entries. People with neither value are left out of this draw and the preview tells you how many. Set Mentees per mentor, or take the number from a field, such as “How many mentees can you take?”; empty answers use the number you set.

Under Match criteria add the fields that make a good match. Same value scores a match when both people chose the same answer (for example the same location). Shared choices compares checkbox answers such as interests and scores how much they overlap. Give each criterion a weight from 1 to 10. The draw picks the arrangement with the best total score; when several arrangements are equally good, one of them is drawn at random. Without criteria the matching is fully random. The preview shows each mentee’s match score as a percentage.

Balanced groups

Set People per group and the add-on works out how many groups are needed. Group sizes never differ by more than one person: fourteen people in groups of four become two groups of four and two groups of three, not three groups of four and one of two. Choose Spread evenly by a field such as department to mix the groups, so each group gets a fair share of every department. If your other rules do not allow a perfectly even spread, the preview says so and the spread is as even as the rules allow.

People

Under People choose the Name field and the E-mail field. A Gravity Forms Name field is shown as first and last name. The card also tells you how many active entries take part. If two entries use the same e-mail address, the preview warns you so you can check for a double sign-up before publishing.

Rules

Rules work in every draw type:

  • Never match people who share the same — tick fields such as Household, Team or Company. Two people with the same answer are never matched, never in the same pair, never in the same group, and never give each other a gift. Empty answers do not count as the same. For checkbox fields, sharing any one choice counts.
  • Never match these people — pick two people and press Add. Use it for anyone who should not meet, for whatever reason.
  • Always match these people — pick two people who must be together. In a gift exchange the first person gives to the second. In groups, people linked by always-match pairs share a group.

When rules make a draw impossible, nothing is drawn and the add-on explains why in plain words. Examples: “6 people share the same Office (Denver), but each of them needs a partner outside it”, “9 mentees need a mentor, but the 4 mentors only have 8 places between them”, or “these 3 people may only give to 2 people between them”. It names the people or the value that cause it, so you know which rule to change. Each refusal is also written to the audit log.

Reveal: what each person sees

Under Reveal tick the fields each person may see about their match, besides the name: a wishlist, interests, a location or a dietary note. Fields you do not tick, such as e-mail addresses or phone numbers, are never shown to other participants.

There are two ways to tell people their match, and you can use both:

  • E-mail: in the form’s notification settings add a notification with the event Random Pairing: draw published and send it to the e-mail field. Use the merge tags {pairing_match} (the match with the allowed fields), {pairing_match_name}, {pairing_group} and {pairing_reveal_url}. The notification runs once per person, so each e-mail only ever contains that person’s own match. Leave the tick Send the “Draw published” notifications when I publish on.
  • Personal reveal page: every person has a signed private link. It opens a simple page that shows their own match and the allowed fields, and nothing else. To show it inside your theme instead, add the shortcode [gf_pairing_reveal] to a page and choose that page under Forms → Settings → Random Pairing → Reveal page.
A personal reveal page: Hi Maya Chen, you are giving a gift to Emma Rossi, with her wishlist
The personal reveal page: one person, their own match and the allowed fields only.

A reveal link cannot be guessed or changed to look up somebody else: the signature covers the draw and the entry number, so another entry number or a single changed character is refused. Links stop working when you start a new round. The page tells search engines not to index it and is never cached.

Preview and re-draw

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: re-draw as often as you like. Nothing is saved on the entries or sent yet.

Press Draw a preview. The right column shows the result: who gives to whom in a gift exchange (and whether it is one circle or several), the pairs and the trio, each mentor with their mentees and scores, or each group with its members. Nothing is saved on the entries and nothing is sent yet. Press Re-draw as often as you like; you can also change the settings and draw again. Each draw shows its random seed, the time and who drew it.

Draws use your server’s cryptographic random generator. The seed of every draw is kept in the audit log, and the same seed with the same entries and settings always gives the same result, so a draw can be checked later.

Publish and lock

A published gift exchange: locked, with the date, user and seed, Export CSV and Start a new round buttons and the personal reveal links
After publishing: the draw is locked, with the CSV export and the personal links.

When the preview looks right, press Publish and lock and confirm. The add-on first checks that the entries have not changed since the preview; if someone signed up, edited an entry or an entry was marked as spam in the meantime, it asks you to re-draw first. Then it:

  • locks the draw: re-drawing and publishing again are refused, and the settings are read-only;
  • saves the result on every entry, visible in the Random Pairing box on the entry screen and as an optional Random Pairing column in the entry list;
  • runs the “Draw published” notifications, one per person;
  • lists the personal reveal links, so you can share a link by hand with anyone who has no e-mail address.

For the next event or the next month, press Start a new round. The published draw is archived in the log, its results are removed from the entries and its personal links answer that the draw was closed. The settings stay filled in, so you can draw round two straight away.

CSV export and audit log

Export CSV downloads one row per person with the draw number, round, status, mode, seed, entry number, name, e-mail, role, who they are matched with and the group. Cells are written so spreadsheet programs never run them as formulas.

The Audit log under the draw lists every preview, re-draw, refused re-draw, impossible-rules message, publish, export and new round, with the time, the user and the seed. It answers the question “who drew this, and when?” for any group that needs a transparent process, such as a staff gift exchange.

Privacy and performance

Everything happens on your own server. The add-on sends no data anywhere and makes no outside HTTP request beyond the GravityExtra licence and update checks. Draws for a few hundred people take well under a second. Uninstalling the add-on through Gravity Forms removes its settings, its draw and log tables and the results it saved on entries; your forms and entries stay.

Troubleshooting

  • No e-mails arrive — check that the form has an active notification with the event “Random Pairing: draw published” sent to the e-mail field, and that the e-mail tick under Reveal is on. The publish message says for how many people the notifications ran.
  • “Entries changed since this preview” — an entry was added, edited, trashed or marked as spam after you drew. Press Re-draw, then publish.
  • A draw is impossible — read the message: it names the value or the people that cause it. Remove or loosen that rule, raise the places per mentor, change the group size, or allow several smaller circles in a gift exchange.
  • A reveal link says it is not valid — the link was cut off in the e-mail program, or a new round was started. Copy the full link again from the published draw.

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