Docs & Support

Learn about all the Formidable features and get support from our amazing customer success team.

FormsForm Builder
Conditional Logic

Conditional Logic

— Premium Feature —

Conditional logic can be used to hide and show form fields or sections of your form if any or all of several criteria are met.

Note: When a field is conditionally hidden, its value will be cleared. In the case of field calculations, this value will be set to zero.

Hide and show form fields

In this example, an Email field shows only when the visitor answers Yes to "Would you like to add your email address?"

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Click the field that you want to conditionally hide or show. Its Field Options open in the sidebar.
  3. Click Conditional Logic. This turns on Enable Conditional Logic and adds the first condition. If the field already has conditional logic, its conditions already show. Skip this click, because clicking the heading closes the panel.
  4. Choose Show or Hide. Then set the condition: the field to check, how to compare it, and the value. For example, show the current field if the "Would you like to add your email address?" field equals Yes. For a field with choices, such as Radio Buttons, the value box is a dropdown of the field's options.
    Conditional Logic - Show this field if a radio button equals Yes
    To check another field or value too, click Add Condition. With 2 or more conditions, choose Any to act when 1 condition matches, or All to act only when every condition matches. The Any and All choice shows above the first condition.
  5. Click Update to save your changes.
  6. Now, when the user meets the criteria in the conditional logic, the hidden field appears.
    Conditional Logic - Email field shown after choosing Yes

A condition can also depend on whether another field has been filled in.

Formidable Forms makes advanced site building simple. Launch forms, directories, dashboards, and custom WordPress apps faster than ever before.

Show a field when another is completed

In this example, an "Anything else?" field appears after the visitor types a name and leaves the Name field.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Click the field that you want to conditionally show. Then click Conditional Logic.
  3. Set it up to say:
    • Show this field if any of the following match: the other field does not equal, with the value box left empty.
    Conditional Logic - Show if Name does not equal blank
  4. Click Update to save your changes.

A condition can also depend on whether a visitor uploaded a file.

Show a field when a file is uploaded

A condition can check whether a File Upload field has a file. In this example, a "Photo caption" field appears only after the visitor uploads a file in a "Headshot" field.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Click the field that you want to conditionally show. Then click Conditional Logic.
  3. In the field dropdown, choose the File Upload field. The comparison dropdown then has only 2 choices. There is no value box. Choose one:
    • has a file: matches when the field has at least 1 file.
    • has no file: matches when the field is empty.
    In a new condition, the comparison starts at has no file. To show a field after an upload, change it to has a file.
    Conditional Logic - Show if Headshot has a file
  4. Click Update to save your changes.
  5. Now, when the user uploads a file, the hidden field appears. When the user removes the file, the field hides again.
    Conditional Logic - Photo caption shown after a Headshot upload

This works for File Upload fields that allow 1 file or multiple files. With multiple files, has a file matches while at least 1 file is left in the field. A required field that this condition hides is not required.

Submit button logic has the same has a file and has no file choices. For example, set the Submit button to Enable this button if Headshot has a file. The button stays disabled until the visitor uploads a file.

In form action conditional logic, a File Upload field still shows the usual comparisons and a value box.

For text that a visitor types, use a text comparison such as contains.

Show a field if it includes a value

To display a field when another field contains a certain word or phrase, use contains in the condition. In this example, a message appears when a Gmail address is entered.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Add an Email field and an HTML field. In the HTML field's Content box, type the message you want to show.
  3. Click the HTML field and click Conditional Logic.
  4. Set it up to say:
    • Show this field if any of the following match: Email contains @gmail.com.
    Conditional Logic - Email contains a value
  5. Click Update to save your changes.
  6. Now, when the user meets the criteria in the conditional logic, the HTML field message appears.
    Conditional Logic - Message shown for a Gmail address
  7. To stop certain email addresses from submitting your form, restrict email addresses with Submit button logic.

To check only the beginning of a value, use starts with instead.

Show a field if it starts with a value

To display a field when another field starts with a specific letter, word, or phrase, use starts with in the condition.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Click the field that you want to show or hide conditionally. Then click Conditional Logic.
  3. Choose Show and Any. For example, to display a field when the first name starts with J, choose Name (First Name). Then choose starts with and type J.
    Conditional Logic - Starts With
  4. Click Update to save your changes.
  5. Now, when the user meets the criteria in the conditional logic, the conditionally hidden field appears.
    Conditional Logic - Field shown after typing a first name that starts with J
To display a field when another field ends with a specific letter, word, or phrase, use ends with in the condition.

A condition can also look at a single part of a larger field.

Use part of a Name or Address field

A condition can check a single part of a Name or Address field, such as the first name or the state. This is useful when only a single part matters, like showing a field to visitors from a specific state.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Click the field that you want to conditionally hide or show. Then click Conditional Logic to turn on Enable Conditional Logic.
  3. In the field dropdown, choose the part you want to check, such as Address (State/Province) or Name (First Name). Then set the comparison and the value.
    Conditional Logic - Address part in a field condition
  4. Click Update to save your changes.

Choosing Name checks the full name. An Address field is listed only by its parts. The same parts are available in form action conditional logic.

Conditional logic can also hide or show a whole group of fields at once.

Conditionally display a section

To hide or show a group of fields, put them in a Section field and add conditional logic to the Section. All the fields inside the section hide or show with it. When a section is hidden with conditional logic, all fields within the section are cleared.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Add a Section field. Hover over each field that goes in the Section. Drag it by its Move Field icon (4 arrows, in the upper-right corner of the field) into the Add Fields Here area of the Section.
  3. Click the Section. Then click Conditional Logic and add any criteria that you want. In this example, the section shows when the visitor answers Yes to "Would you like to add your address?"
    Conditional Logic - Show a Section if a radio button equals Yes
  4. (Optional) To hide the section's heading, expand Advanced in the Section's Field Options and set Label Position to None.
    Conditional Logic - Section Label Position set to None
  5. Click Update to save your changes.
  6. When the user meets the criteria in the conditional logic, all the fields inside of the Section appear.
    Conditional Logic - Section with an Address field shown after choosing Yes

A Section hides or shows a fixed group of fields. To let the visitor choose how many copies of a field appear, give each copy its own condition.

Display selected number of fields

This setup lets users fill out an identical field n times, where n is the number selected in another field. To set it up, give each copy of the field its own condition. For example, show 3 Name fields when a user selects 3 for the number of tickets.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Add a Dropdown field for selecting the number of fields to show. Its options are numbers, such as 1, 2, and 3. In this example, the Dropdown is labeled "How many people in your group?"
    Conditional Logic - How many people in your group dropdown with options 1, 2 and 3
  3. Below the Dropdown, add a Text field and title it Name.
  4. Hover over the field and click the More Options icon (3 dots) in its upper-right corner.
  5. Select Duplicate.
    Conditional Logic - Duplicate the Name field from the More Options menu
    Continue duplicating until you have the maximum number of fields that you need. For example, if your user can select up to 5 in your dropdown, you need 5 Name fields. In this example, the dropdown goes up to 3, so the form has 3 Name fields.
    Conditional Logic - How many people in your group dropdown with 3 Name fields
  6. Add conditional logic to each of the Name fields. Each one uses 2 conditions with Any selected: Show this field if the dropdown equals the field's number, or is greater than the field's number.
    • (Optional) To show the first Name field only after a number is chosen, give it these conditions (equals 1 or is greater than 1). To keep it always visible, skip conditional logic for this field.
      Conditional Logic - First Name field shown if the dropdown equals 1 or is greater than 1
    • Conditional logic settings for the second Name field: the same 2 conditions with 2 (equals 2 or is greater than 2).
    • The third Name field uses the same 2 conditions with 3 (equals 3 or is greater than 3).
      Conditional Logic - Third Name field shown if the dropdown equals 3 or is greater than 3
    • Add similar logic to the rest of the Name fields in your form.
  7. Click Update to save your changes.

Now when the user selects the number of names to input, the selected number of fields shows.
Conditional Logic - Choosing 1, 2 or 3 shows that many Name fields

Conditional logic can also skip a whole page of a multi-page form.

Conditionally skip a page

Conditional logic can skip a page based on a response from the user. The logic goes on the Page Break that starts the page you want to skip. It decides whether the page after that Page Break shows.

  1. Go to Formidable → Forms and click the name of your form to open it in the form builder.
  2. Add a Page Break field to your form.
  3. Click an empty part of the Page Break (the row with the Next button and the next page's marker). For example, to skip Page 2, click the Page Break row that shows the Page 2 marker. Then click Conditional Logic.
  4. In the first dropdown, choose what happens when the conditions match:
    • Skip next page (the default for a new Page Break): jumps over the page after this Page Break when the conditions match.
    • Do not skip next page: shows the page after this Page Break only when the conditions match, and skips it otherwise.
  5. Add the criteria that you want. In this example, the survey page is skipped when the visitor chooses No for "Fill out a survey".
    Conditional Logic Skip Page
  6. Click Update to save your changes.
Was this article helpful? *

This article may contain affiliate links. Once in a while, we earn commissions from those links. But we only recommend products we like, with or without commissions.

In this article

    We have a small, but amazing team of dedicated people who are committed to helping you achieve your goals and project requirements.


    Copyright © 2026 Strategy11, LLC. Formidable Forms® is a registered trademark Strategy11, LLC.

    Join 400,000+ using Formidable Forms to create form-focused solutions fast. Get Formidable Forms