WordPress Form Conditional Logic — Form Forge (Show/Hide Fields)
Download Log in
All Features — Everything You Need to Build WordPress Forms

Smart Conditional Logic for Dynamic Forms

Conditional logic turns a static form into a dynamic one that adapts to the user’s answers. Show a follow-up question only when it’s relevant. Hide fields that don’t apply. Make fields required only in specific scenarios. Form Forge’s conditional logic works on every field type and every form mode.


How conditional logic works in Form Forge

Every field in Form Forge has a Conditional Logic section in its settings panel. Turn it on and you can define one or more conditions that control when the field is shown or hidden.

The anatomy of a condition

A condition has three parts:

  1. A source field — the field whose value triggers the condition
  2. An operator — how to compare the source field’s value
  3. A target value — what to compare against

Example: “Show this field if Inquiry Type equals Technical Support.”

Operators

  • Equalsexact match
  • Does not equalanything but the target value
  • Containssubstring match (text fields)
  • Does not containinverse of contains
  • Is emptyno value provided
  • Is not emptyany value provided
  • Greater thannumeric comparison
  • Less thannumeric comparison
  • Greater than or equal tonumeric comparison
  • Less than or equal tonumeric comparison

Combining conditions (AND / OR)

You can add multiple conditions per field and combine them with AND or OR logic:

  • AND — the field shows only if ALL conditions are true
  • OR — the field shows if ANY condition is true

Example: “Show this field if Country equals United States AND State equals California.”

Conditional required

Conditional logic doesn’t just control visibility. A field can be set as required only when it’s visible. If a condition hides a field, it’s automatically not required — no “please fill in this required field” error for something the user can’t see.


Real-world examples

Quote form with service-specific questions

  • “What service are you interested in?” (dropdown: Web Design, SEO, Content, Consulting)

– If Web Design → show “Do you have an existing website?” (radio)

– If SEO → show “What’s your current monthly traffic?” (number)

– If Content → show “How many articles per month?” (number)

– If Consulting → show “What’s your business stage?” (dropdown)

  • “Estimated budget?” (radio, shown for all)

Healthcare intake with medical follow-ups

  • “Do you have any existing medical conditions?” (radio: Yes / No)

– If Yes → show “Please list them” (textarea, required)

  • “Are you taking any medications?” (radio: Yes / No)

– If Yes → show “Please list them” (textarea, required)

  • “Have you had surgery in the past 12 months?” (radio: Yes / No)

– If Yes → show “Describe the surgery” (textarea, required)

Event registration with ticket-based fields

  • “Ticket type?” (radio: General, VIP, Student)

– If VIP → show “Do you want airport pickup?” (checkbox)

– If Student → show “Student ID upload” (file, required)

Job application with experience-based branching

  • “Years of experience?” (dropdown: 0–2, 3–5, 6–10, 10+)

– If 6–10 or 10+ → show “Link to portfolio or past work” (URL, required)

– If 0–2 → show “Tell us why you’re interested in this role” (textarea, required)

Subscription with payment type

  • “How would you like to pay?” (radio: Credit Card, Invoice)

– If Credit Card → show Stripe payment field

– If Invoice → show “Company Name” (text) and “VAT Number” (text)


Works with every field type and mode

Conditional logic works on every one of Form Forge’s 27 field types — text, email, dropdown, checkbox, file upload, Stripe payment, calculation, map address, everything. It also works in every form display mode: standard, multi-step, and conversational.

In conversational mode, conditional logic is especially powerful: questions adapt based on previous answers, creating a branching conversation instead of a static questionnaire.


Setting up conditional logic

In the Form Forge builder:

  1. Click the field you want to conditionally show or hide
  2. Scroll to Conditional Logic in the right panel
  3. Toggle “Enable conditional logic” on
  4. Choose Show this field or Hide this field
  5. Add your conditions (source field, operator, value)
  6. Combine with AND/OR if you have multiple
  7. Save the form

The live preview in the builder respects conditional logic, so you can test it right in the editor without publishing.


Performance

Form Forge’s conditional logic runs entirely client-side — no extra server requests. Field visibility updates instantly as the user types or selects. For forms with many conditions, Form Forge uses an optimized evaluation engine that scales to dozens of interrelated fields without noticeable lag.


Ready to build a dynamic form?

Get Form Forge — from $49/year →

Conditional logic is included in every paid plan and the free version.

Forge AI Assistant Online

Hi! I'm the Form Forge AI assistant. Ask me anything about the plugin — setup, features, troubleshooting, or development.

Just now
Powered by Forge AI · Browse docs