How to Add Conditional Logic to WordPress Forms (With Examples)

Conditional logic lets a form react to answers: show a field only when it is relevant, hide questions that do not apply and keep forms short for everyone. Here is how it works in WordPress, with practical examples you can copy.

How conditional logic works

Every rule has three parts: a field to watch, a condition (is, is not, contains, greater than, is empty…) and a value. You then choose to show or hide the field when all or any rules match.

Add a rule in Fillnova

  1. Click the field you want to show or hide.
  2. Open the Logic tab and turn on conditional logic.
  3. Choose Show or Hide, and all or any.
  4. Build the rule: “If New patient? is Yes”.
  5. Preview the form and try both answers.

5 examples you can use today

1. Follow-up after a low rating

Show “What could we do better?” only when the rating is less than 3.

2. Business details

Show company name and VAT number only when “Buying as” is “Business”.

3. Call-back request

Show the phone field only when the preferred contact method is “Phone”.

4. Other, please specify

Show a text field when someone picks “Other” in a dropdown.

5. Skip a whole step

In a multi-step form, hide the “Shipping” step when the order is a digital product.

Tip: hidden fields are not required and are not validated, so a visitor is never blocked by a question they cannot see.

Conditional logic is included in the free version of Fillnova. Let the AI form builder add rules for you by describing them: “ask for insurance only for new patients”.

Build this form in a minute with Fillnova

Describe the form and AI builds it – free, no API key, works with any theme.