🎉 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 Fair Online Member Election in WordPress (Ranked Ballots and a Secret Vote)

GravityExtra
How to Run a Fair Online Member Election in WordPress (Ranked Ballots and a Secret Vote)

Every year thousands of clubs, associations, unions, residents' groups, school councils and boards elect a chair, a treasurer and a committee. For a long time that meant a show of hands at the annual meeting or a pile of paper ballots counted late in the evening. Today most members expect to vote online, and many organisations want a ranked ballot that elects a candidate the majority can live with rather than whoever has the biggest single block of supporters.

Running that election on a general online form is tempting, but it goes wrong in predictable ways. This guide explains what a fair online member election needs, how ranked-choice counting works with a worked example you can check by hand, how to keep the ballot secret and how to run the whole thing on your own WordPress site with the Gravity Forms Elections & Ranked Ballots add-on. Whatever tool you choose, your organisation's own rules come first: your constitution or by-laws decide who may vote and how the result is confirmed.

Why a normal form is not an election

A contact form or a survey is designed to collect as many answers as possible. An election needs the opposite. Four things are missing from an ordinary form:

  • Eligibility. Only members on the voter roll may vote. A public form accepts anyone who finds the link.
  • One vote each. A survey happily takes a second submission from the same person. An election must refuse it on the server, not just hide the button.
  • A secret ballot. Form entries store the answers next to the person's name, e-mail address, IP address and the time. Anyone who can see the entries can see how each member voted.
  • A correct count. A ranked question only stores the order. Someone still has to run the rounds of an instant-runoff count or the quota and transfers of a single transferable vote, and others have to be able to check it.

Add the practical needs on top — an opening and closing time, results hidden until voting ends, a turnout figure for the quorum, a way to include postal ballots — and it is clear why online elections need dedicated tools.

Step 1: decide the rules before you build anything

Write down, or look up in your by-laws, the answers to these questions. They decide every setting later.

  • Who is on the voter roll? Paid-up members on a given date, the members of a certain category, every employee? Where does the list come from?
  • How do people vote? With a personal link sent by e-mail, or by logging in to the members' area of your site? Can members without e-mail vote on paper?
  • Which positions are on the ballot, and how many seats does each one have?
  • Which counting method applies? First past the post, approval, instant-runoff, single transferable vote?
  • When does voting open and close? Who may see results before the close?
  • Is there a quorum? A share of the roll, or a number of voters?
  • How are ties settled? By an earlier round, by lot, by a new vote?

Step 2: choose a counting method

The counting method matters more than most people think, because the same ballots can elect different people.

Plurality: the most votes wins

Each voter picks one candidate and the candidate with the most votes wins. It is simple and familiar, but with three or more candidates the winner may be supported by a minority, and voters feel pushed to vote tactically for a candidate who “can win”.

Approval: tick everyone you support

Voters tick every candidate they approve of, up to a limit, and the candidates with the most ticks win the seats. Approval suits committees where several people are elected at once and you simply want the most widely supported ones.

Instant-runoff: a majority, round by round

Voters rank the candidates. Every ballot counts for its highest-ranked candidate still in the race. If someone has more than half of those votes, they win. Otherwise the candidate with the fewest votes is eliminated and their ballots move to each voter's next choice, and the count goes on. Ballots with no choice left are called exhausted and no longer count towards the majority.

Here is a classic example with 100 members and four candidates for chair. Maya's 42 supporters rank Maya, Daniel, Priya, Tom. Daniel's 26 supporters rank Daniel, Priya, Tom, Maya. Priya's 15 rank Priya, Tom, Daniel, Maya. Tom's 17 rank Tom, Priya, Daniel, Maya.

  • Round 1: Maya 42, Daniel 26, Tom 17, Priya 15. Nobody has more than 50, so Priya, with the fewest votes, is eliminated. Her 15 ballots move to their next choice, Tom.
  • Round 2: Maya 42, Tom 32, Daniel 26. Still no majority; Daniel is eliminated. His ballots skip Priya, who is out, and move to Tom.
  • Round 3: Tom 58, Maya 42. Tom has a majority and wins.

With plurality, Maya would have won with 42 votes, even though 58 members ranked her last. Instant-runoff elects the candidate a majority prefers to her. That is why many organisations switch to ranked ballots, and why the round-by-round table matters: members can see exactly where each vote went.

Closed results of an instant-runoff election: turnout and quorum, the winner and a table with every round, the votes moved and who was eliminated
The four-candidate example counted round by round after voting closed.

Single transferable vote: several seats, proportional

For a board with several seats, single transferable vote (STV) extends the same idea. A candidate needs a quota to be elected; the usual one is the Droop quota: the number of valid ballots divided by the seats plus one, rounded down, plus one. With 20 valid ballots and 3 seats, the quota is 6. A candidate with more than the quota has a surplus, and that surplus is passed on: if a candidate has 12 votes and needs 6, every one of their ballots moves to its next choice at half its value. When nobody reaches the quota, the candidate with the fewest votes is eliminated and their ballots move on. The result is a board that reflects the main groups of members instead of one majority taking every seat.

Blank, spoiled and tied

Two more details make a count trustworthy. Blank ballots (nothing chosen for a position) and spoiled ballots (two candidates on a pick-one, the same name ranked twice) should be counted and reported separately, not mixed into the result. And ties need a rule that is written down before the count: the usual one is to look back at the earlier rounds and then draw lots in a way anyone can repeat.

Step 3: protect the secret ballot

A secret ballot means nobody, including the organisers and the site administrator, can find out how a member voted. Online, that is mostly about what is stored. The record that a member has voted and the ballot itself must live apart, with nothing that connects them: no voter ID on the ballot, no shared time stamp, no IP address, no row in a form's entries list. Ballot IDs should be random rather than numbered in voting order, and an export of the ballots should be sorted by that random ID.

It is equally important to stop double voting without breaking secrecy. The safe pattern is a one-time flag on the voter roll: casting a ballot switches the flag on only if it was off, in the same step that drops the ballot into the box. A second attempt, a copied link or two clicks at the same moment then find the flag already on and are refused.

How it differs from polls, surveys and voting on entries

If you already use Gravity Forms, you may have other voting tools, and each of them has its place:

  • Our Entry Reviews & Votes add-on adds public likes and star ratings to entries, for example to let visitors vote for the best photo in a contest. Votes are visible and anyone who can see the entry can vote.
  • Our Survey, Quiz & Poll Tools add-on has a Ranking field and polls with live results. It is made for surveys and quick polls: it keeps no voter roll, does not separate the answer from the person and does not count rankings by instant-runoff or single transferable vote.
  • The official Gravity Forms Polls add-on runs one-question polls with live results.
  • The Elections & Ranked Ballots add-on is built for elections: a voter roll, one ballot per voter enforced on the server, a secret ballot box, results hidden until the close, ranked counting with every round shown and an audit report.

Step 4: set up the election in WordPress

With the Elections & Ranked Ballots add-on for Gravity Forms, the setup follows the decisions above.

  1. Build the ballot. Create a form and add one Election ballot field per position. Choose pick one, pick up to N or rank the candidates, set the seats, and list the candidates with a short bio and an optional photo. Allow a write-in or show the candidates in random order if your rules call for it.
  2. Set the election. In Form Settings, Elections, turn the form into an election, choose link voting or logged-in voting, pick the page that shows the ballot, and set the opening and closing time, the quorum and whether results are published.
  3. Add the voter roll. Under Forms, Elections, paste or upload a CSV of e-mail addresses, names and member numbers, or add WordPress users by role. Duplicates are merged.
  4. Send the ballot links. One button mails every voter a personal, signed, one-time link through a normal Gravity Forms notification that you can word as you like. A reminder button sends fresh links to everyone who has not voted yet.
  5. Watch the turnout. The voter roll shows who has voted (not how) and the turnout against the quorum.
A ranked ballot: the voter's ranking with Move up, Move down and Remove buttons next to the candidates still to rank, a pick-one position with a write-in and a pick-up-to-two position
The ballot as members see it: a ranked position, a pick-one position with a write-in and a pick-up-to-two position.

Members open their link and see the ballot. Ranking works by drag and drop, with Move up and Move down buttons, or entirely from the keyboard, and every change is announced to screen readers, so members who do not use a mouse can vote without help. The server checks the link, the voting time and every choice again when the ballot is cast, stores the vote in the secret ballot box and removes the form entry. The same link then only says that the ballot has been cast.

Step 5: close, count and publish

Until the closing time only organisers can open a clearly marked preview of the results; members who visit the results page are told when the results will appear. At the closing time the add-on counts every position with its method, shows the round-by-round table for ranked positions, lists every tie-break, and reports blank and spoiled ballots, turnout and quorum. You publish the same results on any page with the results shortcode.

For transparency, download the anonymous ballot CSV and the audit report. The report contains every round and the SHA-256 hash of the ballot CSV, so a member, a scrutineer or an auditor can check that the published ballots are the ones that were counted and recount them independently. Postal or paper ballots can be added before you publish, and they are counted the same way.

A checklist for your next election

  • Rules agreed and published: eligibility, positions, seats, method, quorum, tie-break.
  • Voter roll checked against the membership list, including members who will vote on paper.
  • A trial run with a few colleagues on a copy of the ballot, then the roll cleared.
  • Opening and closing times announced; ballot links sent at the opening, a reminder halfway.
  • Results shown only after the close, with the rounds, blank and spoiled ballots and turnout.
  • Anonymous ballots and audit report saved and shared with whoever confirms the result.

None of this replaces your organisation's judgement: the organisers run the election under their own rules and decide how the result is confirmed. What good tools add is less work and more trust: the right people vote, once each, in secret, and everyone can see how the count was made. Read the setup guide for every setting, or see the Gravity Forms Elections & Ranked Ballots add-on to run your next election on your own site.

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