Skip to content
Contact

Build the form

Conditional logic for WordPress forms

A field can appear only when the answers to the fields above call for it: “Which service are you looking for?” only when they pick “Other” from the list. It is free, and the server has the last word: a hidden field is not validated, not required and not saved.

harbourstudio.example/contact/Example · simulated in your browser

What it does

How to use it

  1. With Kubo Forms installed and activated, open the form and make sure the field it depends on sits above the one you want to hide.

  2. Select the field to hide and, in the right sidebar, open Conditional logic.

  3. Turn on “Show this field only if…” and choose the field, the comparison (is, contains, is filled in…) and the value.

  4. If you add more than one with “Add a condition”, choose under “Show it when” whether all of them or any of them must be true.

  5. Save with “Update” and try the form on the page.

Guide: Conditional logic: show a field only if…

Frequently asked questions

Is conditional logic a paid feature?

No. In Kubo Forms it is part of the free plugin, with no limit on fields or forms.

Can I hide a field based on a checkbox?

Yes. With a group of checkboxes, “contains” checks whether an option is among those ticked; with the acceptance or newsletter checkbox, choose “is ticked” or “is not ticked”.

What happens to text typed in a field that then gets hidden?

It is neither sent nor saved. If someone fills in a field, changes an answer above and the field disappears, that value is dropped, even if the submission arrives without JavaScript.

Can I jump to another page of the form depending on the answer?

No: Kubo Forms shows or hides fields within one page. Multi-step forms are planned for later.

Can I send the notification to a different person depending on the answer?

Not with conditional logic: recipients come from the form’s settings. Developers can choose them with the kubo_forms_notification_to filter.

Templates that use it

More features

Want us to tell you when it’s out?

Kubo Forms is free and unlimited in your WordPress. Write to us and we’ll help you get started.