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

Gravity Forms Age Verification Setup Guide

Updated 5 min read Gravity Forms Integrations A–Z
On this page
  1. Video walkthrough
  2. What you need
  3. Activate the add-on
  4. Turn on the age gate for a form
  5. What the visitor sees
  6. The server-side check you can rely on
  7. The {age} merge tag
  8. The compliance attestation on every entry
  9. An age gate, not a datepicker restriction
  10. Privacy and data

Video walkthrough

Gravity Forms Age Verification Setup Guide: Age Gate, Date of Birth Check & Age Merge Tag
Video setup guide: Gravity Forms Age Verification Watch on YouTube

The Gravity Forms Age Verification add-on puts an age gate in front of any form and checks the visitor’s age on the server when they submit. It can ask a simple “Are you over the minimum age?” question or an enter-your-date-of-birth splash, remember a visitor who passes with a cookie, and block, redirect or message anyone who is under age. On submit it works out the age from a date-of-birth field and rejects an under-age submission — a check that runs on the server, so the browser can never be bypassed. It also gives you an {age} merge tag and stores a compliance attestation on every entry. This guide walks through turning it on, the two kinds of gate, the server-side check, the merge tag and the attestation.

What you need

You need Gravity Forms 2.9 or newer and a WordPress site running PHP 7.4 or newer. There is nothing else to sign up for: the add-on is GravityForms-first, uses no third-party service, needs no API key, and makes no outside HTTP calls. It is built for the forms that legally need an age check — alcohol, wine and spirits, cannabis and CBD, vaping and tobacco, gambling and lottery, fireworks, 18+ and 21+ events, and adult products and content.

Activate the add-on

In WordPress go to Forms → Settings → Age Verification and activate your GravityExtra license key. Once it is active you can set the site-wide defaults a new form starts with — the default minimum age and how many days a visitor who passes the gate is remembered. Every form can override these under its own settings.

The Age Verification settings page in Gravity Forms: the licence key and the default minimum age and remember duration
The settings page: your licence key and the defaults a new form starts with.

Turn on the age gate for a form

Open a form, go to Settings → Age Verification, and turn on the age gate. Choose how to ask: a yes / no question (“Are you over the minimum age?”) or an enter date of birth splash. Set the minimum age (anything from 1 to 120), a gate heading, and how long to remember a visitor who passes — a number of days, or 0 to remember only for the current browser session. Finally choose what happens when a visitor is under age: block the form and show a message, redirect them to a URL, or show a custom message in place of the form.

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
The per-form settings: the gate, the minimum age, the remember cookie, the under-age outcome and the date-of-birth field.

What the visitor sees

On the page, the form is held behind a splash until the visitor confirms their age. A yes / no gate shows the question and two buttons; a date-of-birth gate shows a date field and a confirm button. When the visitor is old enough the form is revealed, and — if you allowed it — a cookie remembers the choice so they are not asked again for the number of days you set. When they are under age, the form stays hidden with your message, they are redirected, or they see your custom message, depending on the outcome you chose.

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

The server-side check you can rely on

A splash in the browser is the visitor experience, but it is not something you can trust on its own — anyone can turn off JavaScript or post to the form directly. That is why the real check runs on the server. Add a Date field to your form for the date of birth, then pick it under Date-of-birth validation. On submit the add-on reads that field, works out the age with leap-year and exact-birthday-safe maths (compared date-only, so there is no timezone drift), and rejects the submission with a message on the field when the visitor is below your minimum age. Because this happens on the server, a visitor who skips or tampers with the splash still cannot get an under-age submission through.

The {age} merge tag

Once a date-of-birth field is mapped, the add-on offers an {age} merge tag, computed from that field. Drop it into a notification, a confirmation or a routing rule to use the visitor’s age — for example “A visitor who is {age} joined” in an admin notification, or to send different confirmations for different age bands. When an entry has no readable date of birth, the tag resolves to nothing rather than an error.

The compliance attestation on every entry

When a submission passes the age check, the add-on stores an attestation on the entry: how it was verified, the minimum age that was enforced and a timestamp, together with the date of birth the form collected. It also writes a short, auditable note — “Age verified…” — so the check is visible on the entry screen, not only in the data. The add-on adds no personal data of its own: it keeps only the date of birth your form already collects, and only when you have mapped a date-of-birth field.

A Gravity Forms entry screen showing the Age Verification attestation note that the age was checked
The entry records an attestation note that the age was checked, for your audit trail.

An age gate, not a datepicker restriction

This add-on is a compliance tool, not a calendar one. It is about the gate experience — the splash, the remember cookie, the block / redirect / message outcome — together with the server-side minimum-age check, the {age} merge tag and the attestation record. That is different from simply limiting which dates a datepicker will accept: the point here is to verify a person’s age and keep proof that you did.

Privacy and data

Everything happens on your own site. The add-on contacts no third-party age-verification or ID service and makes no outside HTTP request at all, apart from checking gravityextra.com for your licence and plugin updates. The date of birth is the only personal data involved, it is the field your form already collects, and the attestation stores just the method, the enforced minimum age and a timestamp.

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