Skip to main content

Conditional logic in forms

Use rules to show a field only when an answer matches, so people see only the questions that apply to them.

Written by Leo

Conditional logic keeps long forms short. Instead of showing every question to everyone, you show a question only when an earlier answer calls for it. In Tape, you build conditional logic with rules on blocks. Learn more about rules for blocks →

Note: This feature is only available on the Premium Plan. Learn more about plans →

Who can use conditional logic?

Show a field depending on another answer

Let's say your sales team uses a form to request a project quote. It has a select field Do you have a deadline?. When someone selects Yes, the field When do you need it? should appear. Here's how:

  1. Add the fields Do you have a deadline? and When do you need it? to the form. Learn more about fields in form apps →

  2. Open the block menu of When do you need it? and select Rules.

  3. Select Add rule, then Show block. The new rule appears in the list.

  4. Select the new rule to open it. Under When, choose the field Do you have a deadline?, the match Is, and the value Yes. If the rule has no condition yet, select Add condition first.

  5. Close the menu.

Opening the block menu of the field When do you need it?, selecting Rules, and opening the rule Show block: When Do you have a deadline? Is Yes, Do Show block

The next time someone selects Yes, the deadline field appears right away!

Selecting Yes for Do you have a deadline? in the form Request a project quote, and the field When do you need it? appears

Single select, multi select, and status fields let you match options, for example with Is, Is not, Is any of, or Is none of. For all other field types, a condition checks Is empty or Is not empty.

Hide a field instead

Use Hide block when a field should disappear in a certain case. For example, hide Company name when Customer type is Private.

Combine several conditions

Add more conditions with Add condition. Pick And when all conditions must match, or Or when at least one must match. Use Add condition group to nest conditions.

Show a whole section

Rules also work on a box, group, or tabs block. Put several fields in a box and add the rule to the box to show or hide them together. Learn more about box, group, and tabs →

Rules on the submit button

The submit button supports rules too, for example to show it only after a field has a value. Learn more about the submit button →

FAQs

Can a rule check a field that is hidden?

Yes, a rule checks the value of the field, not whether the field is visible. This also works for fields with Always hide that get their value from a prefill link. Learn more about prefilling form fields →

Can I base a rule on the person who fills out the form?

Yes, use Current user as the condition with Is any of or Is none of, and pick people or groups. Under General, you can also pick Workspace admins, Workspace members, Guests, or Visitors. Someone who isn't signed in, for example on a published form, counts as one of the Visitors, never as one of the people or groups you pick.

Can I show different fields on mobile?

Yes, use Device as the condition and choose Mobile or Desktop. Tape checks the type of device when the page loads, not the size of the window.

Do rules work in a published form?

Yes, rules run for people who fill out the published form too.

Where can I find an overview of form apps?

In Form apps →. It explains how a form app collects information from members or anyone on the web and saves it as records in a database app.

Still have more questions? Find answers and get help from community experts in the Tape community →.

Did this answer your question?