# What is conditional logic in a form?

> Conditional logic shows or hides a form field based on an earlier answer. How a rule like IF service IS EQUAL TO Advisory works, and how to check one.

Source: https://learn.ynteractive.com/content/glossary/conditional-logic · Updated 2026-10-11 · Free from Stepthrough (https://learn.ynteractive.com)

[Web apps](https://learn.ynteractive.com/content/glossary#topic-web-apps) · [AI glossary](https://learn.ynteractive.com/content/glossary)

Quick answer

Conditional logic in a form is a rule that shows or hides a field depending on an earlier answer. For example, a question that applies only to advisory clients appears only when someone picks the advisory service.

Last updated October 11, 2026

Updated October 11, 2026 · By [Robert Breen](https://learn.ynteractive.com/content/about)

## Why it matters for a small business

Long forms put people off, and questions that don't apply to them make it worse. Conditional logic lets one form serve several kinds of people. Each person sees only the fields that matter to them, and you still collect everything you need.

A rule has an IF part and an action. In Jotform's Conditions screen, the lesson shows an IF that says the service IS EQUAL TO "Advisory" and then SHOW for a field, plus a second rule where the service IS NOT EQUAL TO "Advisory" and then HIDE. You can write the rule in plain words in the **Describe your conditions** box and click **Generate**.

The AI writes the rules, but you check them. Reading the generated IF, SHOW and HIDE lines takes a minute, and it is the one habit the lesson insists on before you share anything.

## In a real lesson: Jotform AI: Build a Client Intake Form from One Prompt

In the [lesson](https://learn.ynteractive.com/content/jotform-ai-client-intake-form), the new field you asked Form Copilot to add should show only to advisory clients. You click **SETTINGS** in the orange bar, then **Conditions**, and describe the rule in plain words using **Paste rule**. Enter does nothing here, so you click **Generate**.

The AI writes two rules: IF the service IS EQUAL TO "Advisory", SHOW the field, and IF it IS NOT EQUAL TO "Advisory", HIDE it. That is exactly what was asked, so you click **PUBLISH**.

[Try this lesson free](https://learn.ynteractive.com/modules/jotform-ai-intake-form) or [read the step-by-step guide](https://learn.ynteractive.com/content/jotform-ai-client-intake-form).

## Common confusions

### Conditional logic vs required fields

Required fields must always be answered. Conditional logic changes which fields appear at all.

### Hidden vs deleted

A hidden field is still part of the form. It simply isn't shown when the rule says hide.

## Tips

- State the rule with the exact answer text, such as Advisory.
- Ask for both directions, show and hide, so the field never lingers.
- Test the form yourself with each choice before you send the link.

## Related terms

[AI form builder](https://learn.ynteractive.com/content/glossary/ai-form-builder) · [Form validation](https://learn.ynteractive.com/content/glossary/form-validation) · [IF node](https://learn.ynteractive.com/content/glossary/if-node) · [Intake form](https://learn.ynteractive.com/content/glossary/intake-form)

## More Web apps terms

[Deployment (publishing a web app)](https://learn.ynteractive.com/content/glossary/web-app-deployment) · [Embed code](https://learn.ynteractive.com/content/glossary/embed-code) · [Frontend and backend](https://learn.ynteractive.com/content/glossary/frontend-vs-backend) · [HTTP method (GET vs POST)](https://learn.ynteractive.com/content/glossary/http-method)

## Where you use it: free lessons

- [Jotform AI: Build a Client Intake Form from One Prompt](https://learn.ynteractive.com/content/jotform-ai-client-intake-form) (Jotform, 6 min)
- [Filters and Routers in Make.com: Send Urgent Requests One Way, Routine Ones Another](https://learn.ynteractive.com/content/make-com-router-and-filters) (Make, 12 min)
- [IF and Switch in n8n: Route Work by Rules](https://learn.ynteractive.com/content/n8n-if-and-switch-node-tutorial) (n8n, 10 min)

## Prompt templates that use it

[Form show/hide rule prompt](https://learn.ynteractive.com/content/prompts/form-conditional-rule-prompt)

## Frequently asked questions

**Where do I write the rule in Jotform?**

In Settings, then Conditions. The Describe your conditions box at the top is another AI box.

**Why did the lesson say Enter does nothing?**

On the Conditions screen the next step uses the Generate button, so the rule is not submitted by pressing Enter.

**How many rules did the AI write?**

Two: one to show the field and one to hide it, which is why you check both.

[All AI glossary terms, A to Z](https://learn.ynteractive.com/content/glossary) · [Free prompt templates](https://learn.ynteractive.com/content/prompts)
