Skip to content
Contact

Use it

Conditional logic: show a field only if…

A field can appear only when the answers above it call for it: choosing “Other” in “How did you hear about us?” shows a field to type it in. While it is hidden, it is neither required nor saved.

Turn it on for a field

  1. Select the field and open Conditional logic in the sidebar.

  2. Turn on Show this field only if…. A condition on the first field above is added.

  3. Choose the Field, the condition and, if needed, the value. If that field has options (a dropdown, radio buttons or checkboxes), the value is picked from its list.

  4. Add a condition adds more, up to ten per field. With two or more, Show it when says whether all these are true or any of these is true.

  5. Save the form. In the editor, the field carries a “conditional” badge.

The conditions

They ignore upper and lower case and spaces at either end. In a checkboxes field, “is” is met if one of the ticked options is that value, and “is not” if none of them is.

  • is / is not: the value is (or is not) exactly that.
  • contains / does not contain: the value has (or does not have) that text anywhere.
  • is filled in / is empty: something was typed or chosen, or nothing.
  • On the acceptance and newsletter checkboxes: is ticked / is not ticked.

Which fields can drive them

  • A field can only depend on the fields above it. If there are none, the toggle cannot be turned on.
  • Text, paragraph and choice fields, the acceptance checkbox and the newsletter checkbox can be used as conditions; a file field cannot.
  • Conditional logic can be set on text, paragraph, choice and file fields and on the acceptance checkbox. The newsletter checkbox does not have it.
  • A hidden field counts as empty for the ones below: if a field depends on another that is conditional too, it shows when the first one shows and its own rules are met.

What happens to a hidden field

  • It is not sent and not required, even if you ticked Required: a hidden field never stops a submission. That is how you make a field “required if…”.
  • It is not saved with the submission, nor shown in emails, the CSV or Kubo CRM.
  • The server decides with the same rules as the browser: even if someone sends by hand a field that should be hidden, it is dropped.

With and without JavaScript

With JavaScript, fields appear and disappear as people answer. Without it, the form shows the fields that apply from the start; if an answer makes another field apply and that field is required, the form comes back after sending with it visible so it can be filled in. If it is not required, the submission is saved without it.

Examples

  • “How did you hear about us?” is “Other” → shows a text field “Where?”.
  • A choice field with radio buttons “Are you an individual or a company?” is “Company” → shows “Company”.
  • “Email” is empty → shows “Phone”, marked as required: whoever leaves no email has to leave a phone number.
  • The acceptance checkbox for a workshop’s terms only if “What do you need?” is “Workshop”.

The feature, with its demo: Conditional logic