How can I use "AND" and "OR" logic to create advanced logic?

Growform features an advanced conditional logic builder, which lets you show or hide fields based on any number of criteria.

"OR" conditional logic

"OR" logic applies on an "or" basis - i.e. if one of the given factors are true.

To build conditional logic that applies on an "or" basis, hit the "+ OR" button in the conditional logic builder.

For example, consider a coffee shop's form. Growform could be configured to show an "espresso delivery" step only when:

  • The user chose a single espresso on the first step OR
  • The user chose a double espresso on the first step

The conditional logic configuration to achieve this result looks like this:

The " - OR - " inside the grey block denotes that this field will show only if the type of coffee is "Single espresso" or "Double espresso"


"AND" conditional logic


"AND" logic applies on an "and" basis - i.e. if all of the given factors are true.

To build conditional logic that applies on an "and" basis, hit the "+ AND" button in the conditional logic builder.

To continue the coffee shop example, we may wish to only show delivery options if:

  • The user has selected the delivery option AND
  • The user has checked a box to say they agree to the additional delivery terms

Inside the builder, the conditional logic needed to achieve this result might look like this:

The "- AND - " between the two grey boxes denotes that the first grey box and the second grey box must match in order to show the field.


Getting more advanced: Mixing "AND" and "OR" statements

The conditional logic builder is flexible enough to create some fairly advanced logic.

In this example, let's say we wish to add an "espresso delivery" field that relates to the type of espresso cup used in the delivery process.

We want this field to only show if:

  • The user has selected their type of coffee as "Single espresso" OR "Double espresso" AND
  • The user has selected the delivery option AND
  • The user has checked a box to say they agree to the additional delivery terms

This can be achieved with the following configuration:

As before, every grey box must match in order to show the field (denoted by the " AND " in between the grey boxes).

Inside the grey boxes, one of the conditions must match - denoted by the "OR" statement.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.