# Conditional Disable

Conditional Disable allows you to show the value of the field (input) but make it **dynamically uneditable** based on a rule.&#x20;

To enable it, you'll have to write a formula in the "Conditional disable" box.

{% hint style="warning" %}
**You don't have to** write an "IF" expression to make it work. Simply `EQ(A, B)`will make the field disabled (uneditable) for when the variables meet the condition (A=B) and enabled (editable) when the opposite is true (under the hood it will return logical "1" and "0" correspondingly)
{% endhint %}

Here's an example of a conditional disable for static values:

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F8UmipWWuf2J1oT9EYUpR%2Ffjhygu.gif?alt=media\&token=77a2074d-4608-42d1-975a-d882d6ba1aa2)

**Static values** are great for demonstrating how conditional disable works, but the real use-cases most of the time involve **dynamic values**.

To use a **dynamic value**, delete one of the values in the formula (doesn't matter which one):&#x20;

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2F4nMNAWioJdjuoG8BJQfl%2Ffjthytju.png?alt=media\&token=c413f02a-ef16-4656-84d1-bfa585ed7ad9)

And replace it with the reference to the dynamic value. In our example, we've added to a canvas a new UI component: `Dynamic value` input **(2)** that may receive any value. After we've added it, it automatically appears in the modal window where we can reference it **(1)**.

{% hint style="info" %}
Learn more about **binding and referencing** dynamic values in the [Values section](https://docs.jetadmin.io/user-guide/binding-and-values/parameters)
{% endhint %}

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2Fr3RMWQKPr8hxGVAByC0z%2Fnzbfxct.png?alt=media\&token=146f0873-7cac-4eff-b1c8-0b504a8d385f)

After mapping the variable from the "Conditional disable" formula onto the "Dynamic value" input component, the left component will be editable/non-editable **based on the value** in the right input component:

![](https://3448227606-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LQ08RFAKZvFADEiXKFy%2Fuploads%2FlAYkS9APIo0eIRVWVqVf%2Fftcg.gif?alt=media\&token=cc72f7f2-f04c-403f-8f7e-2f178933529e)

Not only can you fetch dynamic values from the "Input" UI components, but also "**User properties**" such as `email`, or values from specific fields from **selected rows** in the "Table" UI component.
