Skip to content

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).
Table of Contents

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.

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

  1. Add a Radio Button or Checkbox field to your form.
  1. Add its options. For each option, the first box is the label visitors see and the second is the value.

Set the Condition

  1. Select the field you want to show or hide and open Conditional Logic.
  1. Turn on Enable and choose the Radio Button or Checkbox in Field.
  1. 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

Available Conditions

FieldConditions
Radio Buttonis, is not, is empty, is not empty
Checkboxcontains, 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

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!

Related Frequently Asked Questions

What do I need before adding conditional logic to a WordPress form?

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.

What conditions can I use for WordPress form conditional logic?

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.

Why isn't my conditional field appearing in the form?

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.

Can conditional logic work across steps in a multi step form?

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.

Which form fields cannot be controlled by conditional logic?

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.

Last reviewed: September 28, 2026

Related Docs