### A plugin for DatoCMS that allows you disable fields conditionally.

[

**This is a Community Plugin!** Learn how create your own plugin, or copy and remix existing ones in our documentation

](https://www.datocms.com/docs/plugin-sdk/introduction.md)

## DatoCMS Conditional Disabled Field

A plugin for DatoCMS that allows you disable fields conditionally.

## Configuration

Assign the plugin as a Field Addon, and write a valid expression, that can be run in JS using eval function (`{some_field_api_name} &gt; 0 && {another_field} &lt; 100`).

## Development

The plugin is built using [Vite.js](https://vitejs.dev/). This enables a fast development workflow, where you see the changes as soon as you save a file. For it to work, it needs to be rendered inside the DatoCMS interface.

So when testing the plugin locally, you should [create a new plugin](https://www.datocms.com/docs/building-plugins/creating-a-new-plugin.md) in a DatoCMS project, and point it to `http://localhost:3000`.