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

How to Show, Hide or Grey Out Single Choices in Gravity Forms

GravityExtra
How to Show, Hide or Grey Out Single Choices in Gravity Forms

Almost every form that sells something or books something has the same small problem. The field is right, but not every option in it is right for every visitor. The evening delivery slot does not run at weekends. Fresh flowers cannot travel in a delivery van. A large cake needs a few days’ notice. A masterclass is not for beginners. A trade price is only for trade customers. Gravity Forms’ conditional logic is excellent at showing and hiding whole fields, but it has no way to hide one option of a field and keep the rest.

This guide looks at why that matters, the usual workarounds and their costs, and how to add conditional logic to single choices in Gravity Forms with the Gravity Forms Conditional Choices add-on, including the part most workarounds skip: making sure the server refuses an option that was never offered, and that it never ends up in the order total.

Why single options need their own logic

Think of the options in a field as promises. When a visitor sees “Evening delivery (5 to 8 pm)”, they reasonably expect to get it. If your team cannot deliver in the evening on a Sunday, every Sunday evening order becomes a phone call, an apology and often a refund. The same goes for a workshop place that a beginner should not take, an add-on that only fits one product, or a pick-up point that is closed on a public holiday.

The cleanest fix is to stop offering what you cannot deliver, at the moment the visitor makes the choice. That means the options have to react to what the visitor already told you: the date they picked, the way they want to receive the order, their experience level, whether they are logged in as a trade customer. It also means the rules have to hold when someone submits the form in an unusual way, because a rule that only lives in the browser is a suggestion, not a rule.

The usual workarounds, and what they cost

One copy of the field per situation

The most common approach is to build the same field several times: “Delivery slot (weekday)” with three options and “Delivery slot (weekend)” with two, each shown by Gravity Forms conditional logic. It works for one or two cases. With three conditions it becomes six or eight near-identical fields. Every change has to be made in each copy, entries store the answer in different fields depending on the day, exports get extra columns, and notifications need a merge tag for each copy. Pricing fields make it worse, because each copy of a product field is a separate product.

A snippet of JavaScript

The second approach is a few lines of JavaScript that hide an option when another field changes. It is quick to write, but it only changes what the page shows. Anyone can open the browser’s developer tools, tick the hidden box and submit. If that option has a price, the order total can include it, and the payment goes through. The snippet also has to be maintained by someone who knows where it lives, and it rarely handles multi-page or AJAX forms, where the page is rebuilt after each step.

Moving the choices into a data source

A third approach is to fill the choices from a list or a table and filter that list. That is the right tool when the choices really are data, such as products, staff or rooms. For a handful of options typed into the form, it means building and maintaining a data source just to hide one option on Sundays.

Conditional logic on each choice

The Conditional Choices add-on keeps one field and puts the logic on its options. In a form’s Settings → Conditional Choices tab, every radio, checkbox, drop-down, multi-select, product and option field is listed with its options. Next to an option you add a rule with an action and conditions.

There are four actions:

  • Show only when: the option appears only when the conditions are met.
  • Hide when: the option disappears when the conditions are met.
  • Disable when: the option stays visible but greyed out, with a short reason such as “Needs 3 days’ notice”. This is often friendlier than hiding, because visitors learn what exists and why they cannot take it today.
  • Pre-select when: the option is selected for the visitor, for example a gift box suggested with a celebration cake. The visitor can still change it.

Conditions can look at other answers (is, is not, greater than, less than, contains, starts with, ends with), at a date (today or a date answer, before, after, on, between or on certain days of the week, with fixed dates or relative ones such as today + 3) and at the visitor (logged in, logged out or a role). Combine several conditions with “all” or “any”.

A cake order form for local delivery on a Saturday: the Celebration tier cake is greyed out with the note Needs 3 days' notice, Fresh flowers is not offered, and the Evening delivery slot is greyed out with the note No evening deliveries at weekends
A cake order on a Saturday, two days from now, for local delivery: the tier cake is greyed out with its reason, fresh flowers are not offered for delivery and the evening slot is closed at weekends.

A worked example: a cake order form

Here is a small bakery’s order form. One field asks whether the customer collects from the shop or wants local delivery, one asks for the date, and then come the cake, the extras, a delivery slot and a pick-up point. These rules turn it into a form that only offers what the bakery can actually do:

  • Celebration tier cake: disable when the date needed is before today + 3, with the reason “Needs 3 days’ notice”.
  • Fresh flowers (an option on the cake): hide when the customer chooses local delivery.
  • Gift box: pre-select when the cake is the celebration tier cake.
  • Evening delivery slot: disable when the date falls on a Saturday or Sunday, with the reason “No evening deliveries at weekends”.
  • Saturday market stall pick-up point: show only when the date falls on a Saturday.
  • Wholesale tray: show only when the visitor has the trade customer role.

Six rules, one field each, no copies. A customer who wants a tier cake for the day after tomorrow sees it greyed out with the reason, picks a sponge instead, and never has to be called back.

Live, on every page

The rules apply while the visitor fills in the form. Change the date, and the tier cake becomes available again. Switch to delivery, and the flowers disappear. If the visitor had already ticked an option that stops being available, it is cleared, and Gravity Forms recalculates the total and its own conditional logic straight away.

Multi-page forms are where many workarounds break. With Conditional Choices, answers from page 1 drive the options on page 2, whether the form uses AJAX or reloads the page. In the workshop booking below, a beginner reaches page 2 and finds the masterclass greyed out with its reason, the knife skills session not offered (they did not say they would bring knives) and the recipe booklet already selected.

Page 2 of a two-page workshop booking form: the Sourdough masterclass option is greyed out for a beginner with the note For bakers with some experience, Knife skills is not offered, and the Recipe booklet extra is pre-selected
Page 2 of a multi-page form reacts to page 1: a beginner sees the masterclass greyed out with its reason and the recipe booklet already selected.

The server has the last word

Hiding something on the page is only half of the job. When the form is submitted, the add-on reads the submitted answers on the server and applies the same rules again. If a submitted option was hidden or disabled for those answers, the field gets a clear validation message, such as “Fresh flowers” is not available for your answers, and the submission stops there: no entry, no notification, no payment. A disabled option’s message includes the reason you wrote.

The browser script and the server use the same rules and are tested against the same set of cases, so the two always agree. Role rules are checked with the real logged-in user on the server, and date rules use your site’s time zone.

Prices and totals stay honest

For product and option fields, hiding an option also has to mean it cannot be paid for. The add-on keeps hidden and disabled product options out of the order on the server, so the Total field, the order summary in the entry and the amount Gravity Forms hands to your payment add-on all match what the customer could actually choose. In the bakery example, a chocolate fudge cake with candles and fresh flowers costs $49.00 for collection; switch to delivery and the flowers are cleared, the total drops to $37.00, and $37.00 is exactly what is saved and charged.

When nothing is left

Some combinations leave a field with no option at all, for example collecting an order on a day when both pick-up points are closed. You can write the message that appears in place of the options, such as “Sorry, no pick-up point is open on that day. Please choose another date or local delivery.” If the field is required, you can let it stay empty in exactly that situation, so visitors are never stuck on a question they cannot answer. The server applies the same check.

How this differs from other GravityExtra add-ons

Gravity Forms’ own conditional logic works on whole fields, pages, buttons, notifications and feeds. Conditional Choices adds the missing level: single options. It is also different from several of our other add-ons, and works alongside them:

  • Dynamic Populate fills a field’s choices from a data source such as posts, users or entries. Conditional Choices works on the options you typed into the form and decides when each one is offered.
  • Content Personalization changes labels, choices or content by visitor signals such as country or campaign when the page is built. Conditional Choices reacts live to answers in the same form.
  • Choice Limits and Inventory Limits close options when they have been picked a number of times or are sold out. Conditional Choices does not count; it follows answers, dates and roles.
  • Choice Cards changes how options look. Conditional Choices changes which ones are available.
  • The official Chained Selects add-on builds dependent drop-downs from an imported list in its own field type. Conditional Choices works on ordinary radio, checkbox, drop-down, multi-select, product and option fields, with conditions on answers, dates or the visitor.

Keeping track of the rules

Rules are easy to add and easy to forget, so the add-on lists them in two places: at the top of each form’s tab, and on Forms → Conditional Choices, which shows every form with rules and every rule in plain words, such as “Disable when Date needed is before today+3 (reason: Needs 3 days’ notice)”. The rules are stored inside the form, so Gravity Forms’ own export and import keep them, and a copy-and-paste box moves rules between forms with the same fields.

Other ideas

  • Event sessions: grey out each session after its registration deadline with the reason “Registration closed”, so the full programme stays visible.
  • Membership plans: show the members’ rate only to logged-in members, and refuse it on the server for everyone else.
  • Service areas: show “Same-day service” only when the postcode answer starts with your local area code.
  • Quantity breaks: show the “Bulk packaging” option only when the quantity is greater than 50.
  • Course levels: disable advanced modules until the visitor confirms the prerequisite.

Getting started

  1. Install the add-on and activate your licence key under Forms → Settings → Conditional Choices.
  2. Open a form and go to Settings → Conditional Choices.
  3. Pick an option, press Add rule, choose the action and add your conditions.
  4. Save, open the form and try the answers that should change the options.

The Conditional Choices documentation covers every action, condition and setting in detail, with more examples. When your form only offers what you can really deliver, there are fewer corrections, fewer refunds and fewer surprised customers. Get the Gravity Forms Conditional Choices add-on and give each option the logic it needs.

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