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

How to Add Age Verification to Gravity Forms (Age Gate + Server-Side Check)

GravityExtra
How to Add Age Verification to Gravity Forms (Age Gate + Server-Side Check)

If you take orders, sign-ups, bookings or enquiries through a Gravity Form for anything age-restricted — alcohol, wine and spirits, beer clubs, cannabis and CBD, vaping and tobacco, gambling and lottery, fireworks, an 18+ or 21+ event, adult products or content — you need to be sure the person on the other side is old enough, and you need to be able to show that you checked. A tick box that says “I am over 18” is easy to click and impossible to prove. The Gravity Forms Age Verification add-on gives you a real age gate in front of the form and, more importantly, a server-side age check on submit that the browser cannot get around — with an {age} merge tag and a compliance attestation stored on every entry.

Why an age gate needs to be more than a splash

Most “age gate” tools stop at the splash: a pop-up that asks whether you are old enough, sets a cookie when you say yes, and lets you through. That is fine as a first line — it sets expectations and keeps casual under-age visitors out — but it lives entirely in the browser. Anyone who turns off JavaScript, clears the overlay, or posts to the form directly walks straight past it. If your compliance depends only on that splash, it is not really a control at all. A proper age check has to happen where the submission is actually processed: on the server. This add-on does both. The splash is the experience your visitors see; the server-side check is the part you can rely on.

Two kinds of gate

You choose how the gate asks. A yes / no gate shows a single question — “Are you over the minimum age?” — with two buttons, which is the quickest, lightest option for a simple 18+ or 21+ landing. An enter-your-date-of-birth gate shows a date field and works out the age from what the visitor enters, which is stricter and feels more deliberate. Either way you set the minimum age (anything from 1 to 120), a heading, and what happens to an under-age visitor.

The age-gate splash shown before a Gravity Form, asking the visitor to confirm their age
The age-gate splash holds the form back until the visitor confirms their age.

Block, redirect, or message

When a visitor is under age you decide what they get. Block keeps the form hidden and shows a message in the gate — the visitor stays on the page but cannot reach the form. Redirect sends them to a URL you choose, which is handy when you have a dedicated “sorry, you must be older” page or want to send them back to the shop front. Show a custom message replaces the form with your own wording. Because this is set per form, a wine shop’s order form can redirect, while a tobacco sample request simply blocks with a note — each form behaves the way that suits it.

Remember my choice

Asking a returning visitor the same question on every page quickly becomes annoying, so the gate can remember a visitor who passes. You set the duration in days — a week, a month, whatever fits — or 0 to remember only for the current browser session. The choice is kept in a simple cookie on the visitor’s own browser; nothing is sent anywhere. The next time they land on a gated form within that window, they go straight through.

The check that cannot be bypassed

Here is the part that makes this a compliance tool rather than a decoration. Add a Date field to your form for the date of birth and pick it in the add-on’s form settings. On submit — whatever happened in the browser, and even for submissions that come in through the REST API or an import — the add-on reads that field, computes the age on the server, and rejects the submission with a clear message on the field when the visitor is below your minimum age. The age maths is careful: it is leap-year aware, it treats the exact birthday correctly (you are 18 on your eighteenth birthday, not the day after), and it compares dates day-by-day so there is no timezone drift that could let someone through a day early. A visitor who skipped the splash entirely still cannot get an under-age submission accepted.

The per-form Age Verification settings: the age gate mode, minimum age, remember duration, under-age outcome and the date-of-birth field to validate
Pick a Date field as the date of birth and the add-on enforces the minimum age on the server.

The {age} merge tag

Once a date-of-birth field is mapped, the add-on adds an {age} merge tag that resolves to the visitor’s age in whole years. Use it anywhere Gravity Forms merge tags work: in an admin notification (“A visitor who is {age} joined”), in a confirmation message, or in routing so that different age bands receive different follow-ups. It is computed from the same date of birth the server validates, so your messages and your check always agree. If an entry has no readable date of birth, the tag simply resolves to nothing instead of printing an error.

A compliance record on every entry

Checking the age is only half the job; being able to show that you did is the other half. When a submission passes, the add-on writes a compliance attestation to the entry: the method used, the minimum age that was enforced and a timestamp, alongside the date of birth the form collected. It also leaves a short, human-readable note on the entry — “Age verified…” — so anyone reviewing the entry can see at a glance that the check happened. If you are ever asked to demonstrate that your forms enforce an age limit, that record is right there on each submission.

Privacy by design

The add-on is GravityForms-first and completely self-contained. It signs up for no third-party age-verification or ID service, it needs no API key, and it makes no outside HTTP calls at all apart from checking gravityextra.com for your licence and plugin updates. The only personal data involved is the date of birth — and that is a field your form already collects. The attestation itself stores just the method, the enforced minimum age and a timestamp. There is nothing to leak to a vendor because there is no vendor.

Setting it up

Install and activate the add-on, then activate your licence key under Forms → Settings → Age Verification, where you can also set the defaults a new form starts with. Open the form you want to protect, go to Settings → Age Verification, turn on the gate, pick yes/no or date-of-birth, set the minimum age, the remember duration and the under-age outcome. For the hard server-side check, add a Date field for the date of birth and select it under Date-of-birth validation. Add the {age} merge tag to a notification if you want the age in your messages, send a test submission, and you are done. The full walkthrough is in the setup guide.

Not a datepicker restriction

It is worth being clear about what this is and is not. Limiting which dates a datepicker will accept is a calendar feature; verifying a person’s age and keeping proof that you did is a compliance feature. This add-on is the second one: the gate experience, the server-side minimum-age check, the {age} merge tag and the attestation record, working together so an age-restricted form is actually protected and auditable — not just styled with a pop-up.

If your forms sell or sign people up for something with an age limit, give them a gate you can stand behind. Get Gravity Forms Age Verification and turn any form into an age-checked, auditable one in a few minutes.

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