# Conditionals

Jet Admin allows you to use **conditional logic** in your app and apply it to UI components and dynamic values. There are several ways to implement it depending on the use case:

### Formulas

You can use logical expressions, such as `If`, `Else`, `Or` to transform **dynamic values**. These logical expressions live in Jet in the form of **Formulas**, which can be found in the Dynamic data modal pop-up:

![](/files/RMwYtCy17Fcu0nmUQM83)

### Conditional visibility&#x20;

Component visibility allows you to **show or hide UI components** based on a rule. This might be useful, for example, when building a complex form where you want or don't want to show more fields to gather additional information based on a certain input.

Or when you want to show or hide some sections of your app depending on the user who's logged in or their role.

Conditional visibility **can be accessed** within any UI component. To access, follow the steps:

1. Click on the **Component**
2. Go to the **Display Tab**

{% @arcade/embed flowId="GTcwwla472d83KVovqMs" url="<https://app.arcade.software/share/GTcwwla472d83KVovqMs>" %}

Dive deeper into conditional visibility **setup** and **use cases** here:

{% content-ref url="/pages/-MijlyJecsOqUQAQk1fe" %}
[Conditional Visibility](/user-guide/components-visibility/conditional-visibility.md)
{% endcontent-ref %}

### Conditional disable

But what if you want to show the value of a UI component still, but make it **uneditable based on a rule**? In that case, you should use the conditional disable feature, which you can find right below the Conditional visibility:

![](/files/GNbxs7Zt1vuG0XpnE0xQ)

Dive deeper into conditional disable **setup** and **use cases** here:

{% content-ref url="/pages/uEKa9Cdoalg8aLR28Vrb" %}
[Conditional Disable](/user-guide/components-visibility/conditional-disable.md)
{% endcontent-ref %}

Allowing users to add, edit & delete records can be very powerful, but sometimes you want to restrict this to only certain Pages or Teams/Users. With conditional add, edit & delete you can do this:

{% content-ref url="/pages/-MijmWxjo7nF2lWpW4vW" %}
[Conditional read, add, edit & delete](/user-guide/components-visibility/conditional-add-edit-and-delete.md)
{% endcontent-ref %}


---

# 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.jetadmin.io/user-guide/components-visibility.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.
