# Conditional Logic

Show or hide fields based on how a customer answers a previous question. This keeps your form short and relevant — customers only see the questions that apply to them.

For example, if someone selects "HVAC" as their service type, you can show a follow-up question about their AC unit brand. If they select "Plumbing," you show a different set of questions instead.

## How It Works

1. Open your form in the form builder.
2. Click the field you want to show or hide conditionally.
3. In the field settings panel, find the **Conditional Logic** section.
4. Click **Add Condition**.
5. Set up your rule:
   * **When** — pick the field that triggers the condition (for example, "Service Type").
   * **Is / Is Not / Contains** — pick how to compare.
   * **Value** — pick the answer that triggers this rule (for example, "HVAC").
6. Choose whether to **Show** or **Hide** the current field when the condition is met.
7. Click **Save** and preview your form to test it.

![condition rule (step 2)](/files/ozefwvrQWoIApzOo0aK1)

![show conditions (step 1)](/files/3q7FPmr3MN89sOekD92C)

![show conditions (step 2)](/files/5ZcsVLfZOu8yGwNSNjAG)

## Examples

* **Show "AC Unit Brand"** only when Service Type is "HVAC."
* **Show "Number of Fixtures"** only when Service Type is "Plumbing."
* **Show "Roof Type" dropdown** only when Service Type is "Roofing."
* **Hide "Upload Photos"** when the customer selects "Just a question, no service needed."

## Tips

* **Build your form without conditions first**, then add them after all your fields are in place.
* **Test every path.** Preview the form and try each answer to make sure the right fields show up.
* **Don't over-complicate it.** One or two conditions per field is usually enough.

## Related Pages

* [Field Types](/form-builder/proforge-forms/creating-a-form/field-types.md)
* [Multi-Step Forms](/form-builder/proforge-forms/creating-a-form/multi-step-forms.md)
* [Creating a Form](/form-builder/proforge-forms/creating-a-form.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.proforgeerp.com/form-builder/proforge-forms/creating-a-form/conditional-logic.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
