> For the complete documentation index, see [llms.txt](https://docs.powerfulform.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerfulform.com/build-your-form/conditional-logic.md).

# Set logic conditions for form

Show or hide fields based on what the visitor has already answered.

## 📝 Show or Hide Individual Form Fields

*(Useful when you want extra questions to appear only if needed.)*

The app allows set up to show a field based on an option selected of a field above.

Example: Display the "Product Types" field only when the user selects "Yes" for "Are you interested in our products?"​

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-ed34347d22be73292a1748bd123747806e494d3c%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-1.png?alt=media" alt=""><figcaption></figcaption></figure>

### 📝 Steps to set condition for fields

1\. Open the app > click **Forms** > open a form or create new one

2\. Add fields you want to display with condition to the form > click to open the field/element detail

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-91c8f5ec56ebcdcb2cc248a3272c583acfdca0f0%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-2.png?alt=media" alt=""><figcaption></figcaption></figure>

3\. In the field settings, turn on **Conditional** **display**, then click **Condition**

4. Create a rule:

**Show this field when:**

* **What are you interested in?**
* **is equal to**
* **Product types**

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-015847e94a85c290aa7fa527585d8448fe9fa1c3%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-3.png?alt=media" alt=""><figcaption></figcaption></figure>

5, Click **Save** and test the result

### ✅How it works

* When the user checks **“Product types” →** the extra field appears
* If they don’t check it → the field stays hidden

Your form now shows the **“Product Types”** field *only when relevant*, keeping the form shorter and easier to complete.

## 📝 Show or Hide Entire Steps (Multi-Step Form)

Our app allows displaying one step/page on the form based on a selected option on the previous step.

**Example:** Display the **“Teacher Details”** step *only when* the user selects **“Yes”** for **“Do you want to assign a teacher?”**

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-8460b631ce06c2ec56fd798dc3c08c29d0a952c0%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-4.png?alt=media" alt=""><figcaption></figcaption></figure>

### 📝 Steps to set conditions for pages

1\. Open the app > click **Forms** > open a form or create new one > add fields and pages you want to display with condition to the form

2\. Click on the **Page** name to open it

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-905071b60863badb20d1aa862b676099344d5c7f%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-5.png?alt=media" alt=""><figcaption></figcaption></figure>

3. In the step settings, turn on **Conditional** **display** > click **Condition**
4. Create a rule:

   Show this step when:

   * **Do you want to assign a teacher?**
   * **is equal to**
   * **Yes**

<figure><img src="https://2907469752-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FehM2rz7MmKkWcJmgvJOe%2Fuploads%2Fgit-blob-35ca7fe5dab978fb5a2c81782f913d50e9ce4119%2Fscreenshot-old-build-your-form-set-logic-conditions-for-form-6.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Click **Save**

### ✅ How it works

* If user selects **Yes →** the Teacher Details step appears
* If they select **No →** the step is skipped

Your multi-step form now behaves like a guided flow, only showing the teacher section for users who need it.

## 🎥 Tutorial video

{% embed url="<https://www.youtube.com/watch?v=SKxOOacgM54>" %}

## 💡 Troubleshooting

If conditional logic doesn’t work:

* Make sure you saved the condition
* Check values you selected match exactly (e.g., “Yes”)
* Ensure the trigger field appears before the conditional field/step
* Refresh preview or test on the live store

<br>

## Next steps

* [Multi-step forms](/build-your-form/special-form-types/multi-step-forms.md) — skip a whole page conditionally.
* [Admin emails with conditions](/email-notifications/admin-emails-with-conditions.md) — the same idea on notifications.
