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.
What it does
Six comparisons
Is, is not, contains, does not contain, is filled in and is empty; and for checkboxes, is ticked or is not ticked. Case doesn’t matter.
All or any
Up to ten conditions per field, and you choose whether all must be true or any one is enough. For example: show “What could we do better?” when the rating is “Fair” or “Poor”.
Required only when visible
A required field that is hidden isn’t asked for. So you can require a company name only from people who say they are writing for one.
Same with or without JavaScript
In the browser, the field appears and disappears as people answer. Without JavaScript, the server applies the same rule when the submission arrives and drops whatever didn’t apply.
No loops possible
A field can only depend on fields above it, and a hidden one counts as empty. The result depends on nothing but the form itself.
How to use it
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.
Select the field to hide and, in the right sidebar, open Conditional logic.
Turn on “Show this field only if…” and choose the field, the comparison (is, contains, is filled in…) and the value.
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.
Save with “Update” and try the form on the page.
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
- Quote requestA WordPress quote request form: which service, by when and the project details, with every request saved in your site and ready to send on to your CRM.
- Feedback formA WordPress feedback form: a rating, what could be better, and an email only if they want a reply. Feedback without asking for contact details first.
More features
- Form fieldsText, email, phone, number, website, date, paragraph, dropdown, radio buttons, checkboxes, file upload and acceptance, all free and validated on the server.
- Form builderBuild WordPress forms by dragging ready-made fields from a side panel, or start from one of seven templates. In the block editor, with nothing new to learn.
- Form entriesEvery entry from your forms is saved in your WordPress even if the email fails: search it, mark it read or spam, and export it to CSV. Free.
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.