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

How to Set Minimum, Maximum and Exact Selections in Gravity Forms Checkboxes

GravityExtra
How to Set Minimum, Maximum and Exact Selections in Gravity Forms Checkboxes

Checkboxes are the fastest way to let people pick from a list, and the fastest way to collect answers your team cannot use. In this guide you will learn how to set a minimum, a maximum or an exact number of selections for Gravity Forms checkboxes and multi selects, how to share one total across several questions, and how to make sure the rule also holds on the server with the Gravity Forms Choice Limits add-on.

1. Why checkbox limits matter (and where Gravity Forms stops)

Checkboxes let people pick workshops at a conference, toppings on an order, sessions in a training week or add-ons for a product. The trouble starts when the business behind the form has a rule. “Choose your two favourite workshops.” “Pick at least three references.” “Select exactly five sessions.” Without a limit, visitors pick six workshops, leave the references empty, or choose four sessions where you planned five, and someone on your team has to email them back.

Gravity Forms makes a checkbox field required, but required only means “at least one”. Its Multiple Choice field (2.9 and newer) has a selection setting of its own, yet classic Checkboxes, Multi Select, Product Option checkboxes and post fields do not. And none of the built-in options handle the rule people ask for most often after the first one: one total across several questions, such as “six sessions in total across Monday, Tuesday and Wednesday”.

The usual workaround is a snippet of JavaScript that disables checkboxes after a number of clicks. It looks fine in a demo, but it has three problems. It runs only in the browser, so anyone who switches off JavaScript, uses an old browser or edits the page can submit more choices. It usually breaks when a form is loaded with AJAX or appears twice on one page. And it gives screen reader users no clue why a checkbox suddenly stopped working.

What a form owner needs is simple to describe: a rule per field, a total across fields when needed, a clear message when the rule is broken, and a check on the server that cannot be skipped.

2. Snippets, developers or an add-on? What each option really costs

GravityExtra Choice Limits Custom code from a developer Copy-pasted snippet
Cost From $29 per year for one site (5- and 10-site plans available) Several hours of developer time per form, plus every later change Free, then your time
Setup time Minutes, in one settings table Days (brief, build, test) An hour per form
Server-side check Yes, every rule Only if the developer writes it Rarely
Totals across fields and pages Yes Extra work Rarely
Accessibility Live announcements and aria-disabled Depends Usually none
Several forms on one page, AJAX Yes Must be tested Often breaks
Maintenance on Gravity Forms updates Included with updates Billable Yours

A one-off snippet looks cheap until the second form, the first AJAX form, or the first visitor who gets around it. A developer can build everything, but each new rule becomes a new request and a new invoice. An add-on puts the rules on a settings screen your team already knows, keeps working when Gravity Forms changes, and costs less per year than a single hour of development.

There is also a data-quality cost that rarely shows up in a budget. Every registration with too many workshops means a manual email, a corrected spreadsheet and a confused attendee. Every order with too few options means a phone call before it can be produced. A limit that is enforced at the moment of entry removes that follow-up work completely.

3. Step by step: limits for a real registration form

The example is an event registration form with workshops, meal choices per guest and sessions across two days.

Step 1: Install and activate

Upload the add-on under Plugins → Add New → Upload Plugin and activate it. Go to Forms → Settings → Choice Limits, paste your license key and click Activate License. Gravity Forms 2.9 or newer is needed.

Step 2: Open the form’s Choice Limits tab

Open the form, click Settings, then Choice Limits. The add-on lists every field it can limit: Checkboxes, Multi Select, Image Choice and Multiple Choice in checkbox mode, Product Option checkboxes and post fields with checkboxes. Each row shows the field label, type and ID, so long forms stay readable.

Choice Limits tab in Form Settings: one row per checkbox and multi-select field with Rule, Min and Max, Max from field, Shared limit, Allow empty and Message
Choice Limits tab in Form Settings: one row per checkbox and multi-select field with Rule, Min and Max, Max from field, Shared limit, Allow empty and Message

Step 3: Pick a rule for each field

  • Workshops: At most 2. Visitors can tick two; the rest lock until they remove one.
  • Toppings: At least 2, with Allow empty on, because the question is optional.
  • Add-ons: Exactly 3.
  • Languages (Multi Select): Between 2 and 3.

Messages are optional. Leave them empty to use the defaults (“Please choose no more than 2.”) or write your own with {min}, {max} and {selected}, for example “Choose exactly {min} add-ons; you picked {selected}.”

Step 4: Let the maximum follow another answer

For meals, add a Number field “Guests”. In the Meals row choose At most, set 1 as the fixed fallback and pick “Guests” in Max from field. A visitor who enters 3 guests can choose three meals; the counter updates as they type.

Step 5: Share one total across fields

In the Shared limits table type “Sessions” in an empty row, choose Between 2 and 3, and pick the new name in the Shared limit column of the Monday and Tuesday rows. Both fields now count together. When the total reaches three, both fields lock, and both show “In total: 3 of 3 selected”.

Shared limit across Monday and Tuesday sessions with the counter "In total: 4 of 3 selected" and a maximum that follows the number of guests
Shared limit across Monday and Tuesday sessions with the counter "In total: 4 of 3 selected" and a maximum that follows the number of guests

Step 6: Test a submission

Submit the form inside the limits: the entry is saved. Now try to break a rule. Even if the page is edited to tick more boxes, the server counts the submitted choices again and shows the message on the field, and on every field of a shared group.

Form after submit: messages on the fields that break a limit, locked choices after the maximum and the live counter "4 of 2 selected"
Form after submit: messages on the fields that break a limit, locked choices after the maximum and the live counter "4 of 2 selected"

4. Pro tips for production forms

  • Multi-page forms: a shared limit can span pages. The maximum is checked on every page; the minimum waits until the visitor reaches the page with the last field of the group, so nobody is stopped on page one for a choice they make on page two.
  • Conditional logic: fields hidden by conditional logic do not count and are not checked. A “Do you want extras?” question can safely control an “Extras” field with a minimum.
  • Required versus minimum: mark a field Required when it must be answered; use At least for how many. An empty required field shows Gravity Forms’ own required message, a partly answered one shows yours.
  • Several forms on one page: each form keeps its own counters and limits, which is handy for landing pages with a short poll next to a registration form.
  • Site-wide wording: set default messages once at Forms → Settings → Choice Limits and keep per-rule messages for special cases.
  • Overview in the editor: each limited field shows a one-line summary in its settings, with a link to the Choice Limits tab, so editors know a rule exists before they change the choices.

Rules your forms keep, in every checkbox and multi-select field

Per-field rules, shared totals across pages, a maximum that follows another answer, and a server check that cannot be skipped. Set it up in minutes on one settings screen.

5. Frequently asked questions

Does it work with Gravity Forms’ Multiple Choice and Image Choice fields?

Yes, in checkbox mode. If the Multiple Choice field’s own selection setting is also used, both apply, so pick one place to manage the rule.

Can a visitor get around the limit by editing the page?

No. The browser helps visitors, but every rule is counted again on the server from the submitted values before the entry is saved.

What happens if the “Guests” number goes down after meals were chosen?

Nothing is unticked for the visitor. The counter turns red and the form asks them to remove a choice before it is accepted.

I used the earlier version of this add-on. Do I need to set everything up again?

No. Version 2.0 copies your limits and your license key to the new tab automatically, lists the forms it updated, and keeps the earlier settings in place.

Limits are one of those small details that decide whether a form produces clean, usable entries or a pile of follow-up emails. With Choice Limits the rule lives next to the form, visitors see it while they choose, and the server makes sure it holds.

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