---
title: "How to Add Conditional Logic in WordPress Form?"
url: https://nexterwp.com/docs/add-conditional-logic-in-wordpress-form/
date: 2026-09-08
modified: 2026-09-28
lang: en
author: "Aditya Sharma"
description: "Conditional logic shows visitors only the fields that matter to them, so forms stay short and clear. The free Form block in Nexter Blocks can show or hide any field..."
word_count: 354
---

# How to Add Conditional Logic in WordPress Form?

## Key Takeaways

- Form block in Nexter Blocks shows or hides any field based on a Radio Button or Checkbox answer, and the free edition works in Nexter Blocks and with Nexter Blocks Pro.
- Conditional Logic supports Radio Button conditions like is, is not, is empty, and is not empty, plus Checkbox conditions like contains, does not contain, is empty, and is not empty.
- Hidden fields are not required and their values are not sent, so they do not block submission or appear in emails; conditions also work across steps in a multi step form (Pro).

Conditional logic shows visitors only the fields that matter to them, so forms stay short and clear.

The free Form block in Nexter Blocks can show or hide any field based on a Radio Button or Checkbox answer.

*For every Form setting in one place, see the [Form block guide](https://nexterwp.com/docs/add-a-form-in-wordpress/).*

[LIVE BLOCK LINK](https://nexterwp.com/nexter-blocks/blocks/)

## Before You Start

- **Edition:** Free — works in Nexter Blocks (free) and with Nexter Blocks Pro.- **Block to enable:** Form, switched on under **Nexter > Blocks** in your WordPress dashboard.- **A Radio Button or Checkbox field** in the form. Conditions can only check these two field types.

## Add the Field That Controls the Condition

- Add a **Radio Button** or **Checkbox** field to your form.

- Add its options. For each option, the first box is the label visitors see and the second is the value.

## Set the Condition

- Select the field you want to show or hide and open **Conditional Logic**.

- Turn on **Enable** and choose the Radio Button or Checkbox in **Field**.

- Pick a **Condition** and a **Value**, then choose **Show this field** or **Hide this field** in **Then**. Save.

![The Conditional Logic panel with Enable, Field, Condition and Then](https://nexterwp.com/wp-content/uploads/2026/08/nxt-form-cond-panel-v2.webp)

## Available Conditions

| Field | Conditions |
| ----- | ---------- |
| Radio Button | is, is not, is empty, is not empty |
| Checkbox | contains, does not contain, is empty, is not empty |

**Value** is not needed for is empty and is not empty.

## How It Behaves

- The field updates as soon as the visitor changes their answer.- A hidden field is not required and its value is not sent, so it never blocks submission and is left out of emails.- Values are compared without regard to upper or lower case.- Conditions work across steps in a multi step form (Pro).

## Limitations

- Only Radio Button and Checkbox fields can drive a condition.- Each field has one condition.- Hidden Field, Submit and Security Code cannot be shown or hidden with conditions.

## Troubleshooting

### The Conditional Logic panel says to add a radio or checkbox field

Add a Radio Button or Checkbox field to the same form first.

### The field never appears

Check the Value matches one of the options and that Then is set to Show this field.

## Related Docs

- [Form block: all settings](https://nexterwp.com/docs/add-a-form-in-wordpress/)- [Create a multi step form](https://nexterwp.com/docs/create-a-multi-step-form-in-wordpress/)- [Receive a custom email for each submission](https://nexterwp.com/docs/receive-custom-email-confirmation-from-wordpress-form/)

## Frequently Asked Questions

**Q: What do I need before adding conditional logic to a WordPress form?**
A: Conditional logic in Nexter Blocks depends on a Radio Button or Checkbox field, so that control field has to exist in the same form first. The feature is available in the free Form block and also works in Nexter Blocks Pro, with the Form block enabled under Nexter > Blocks in your WordPress dashboard. That matters because the logic can only read those two field types, not every form field.

**Q: What conditions can I use for WordPress form conditional logic?**
A: Nexter Blocks supports four conditions for Radio Button fields: is, is not, is empty, and is not empty. Checkbox fields support contains, does not contain, is empty, and is not empty. Value is not needed for is empty and is not empty, which keeps those rules useful when you only care whether something was selected or left blank.

**Q: Why isn't my conditional field appearing in the form?**
A: The usual cause is a mismatch between the Value and the option value in the controlling field. Each option has a label visitors see and a separate value behind it, so the condition has to match that value exactly. Another common miss is forgetting to set Then to Show this field. Since values are compared without regard to upper or lower case, capitalization is not the problem here.

**Q: Can conditional logic work across steps in a multi step form?**
A: Conditional logic works across steps in a multi step form in Nexter Blocks Pro. That means a choice made earlier can control what appears later, which helps keep longer forms shorter and less cluttered. Hidden fields are not required and their values are not sent, so they will not block submission or show up in emails.

**Q: Which form fields cannot be controlled by conditional logic?**
A: Hidden Field, Submit, and Security Code cannot be shown or hidden with conditions in Nexter Blocks. Only Radio Button and Checkbox fields can drive a condition, and each field has one condition. That limitation matters when planning your form structure because the logic can hide content fields, but it cannot be used to toggle those three special fields.
