Math Captcha for Gravity Forms

Math Captcha for Gravity Forms

Details
View on WordPress

Math Captcha for Gravity Forms adds a basic “what is X + Y” challenge to any Gravity Forms form, helping block automated spam submissions without relying on third-party CAPTCHA services, external API calls, or client-side JavaScript.

How it works

  1. Add three fields to your Gravity Forms form:
    • A Number (or Hidden) field with Admin Label num1
    • A Number (or Hidden) field with Admin Label num2
    • A Number field with Admin Label math_answer, where the visitor types their answer
  2. Add an HTML field containing the placeholder {math_question} wherever you want the question text to appear.
  3. The plugin fills num1 and num2 with random numbers on each page load, replaces {math_question} with the rendered question, and validates math_answer server-side on submit.

The same numbers persist across a failed-validation reload, so the question a visitor sees always matches what’s being validated.

Why server-side?

No JavaScript means no scripts to block, no client-side bypass, and no impact on page-load performance.

This plugin is independently developed and is not affiliated with, endorsed by, or sponsored by Rocketgenius, Inc. or Gravity Forms.

Details

Plugin code:
math-captcha-for-gravity-forms
Plugin version:
1.0.0
Outdated:
No
WP version:
6.3 or higher
PHP version:
7.4 or higher
Test up to WP version:
7.0
Total installations:
0
Last updated:
2026-07-01
Rating:
Times rated:
0
captcha
forms
gravity-forms
math-captcha
spam-protection