---
title: "Disabling Custom Fields That Are Not Supported"
canonical: "https://support.appfire.com/space/SUPPORT/80878143/Disabling%20Custom%20Fields%20That%20Are%20Not%20Supported"
format: markdown
---
Not all custom fields are supported by Live Fields. For a complete list, see this documentation on [Fields and graphic elements supported by Live Fields](https://appfire.atlassian.net/wiki/spaces/JJUPIN/pages/13239959). This page will guide you on how to use JavaScript and jQuery as a workaround to disable unsupported custom fields.

## Inspecting and Copying the Query Selector 

Follow the instructions here on [copying](https://appfire.atlassian.net/wiki/spaces/SUPPORT/pages/80878181) the element of the query selector.

## Disabling Custom Fields Based on Selection

**Main Script**

|  |
| --- |
| ```
lfInstantHook("issueType", "LiveFields/hook.sil");
lfWatch("issueType", "issueType", "LiveFields/hook.sil");
``` |

**Hook Script**

|  |
| --- |
| ```
if (argv["issueType"] == "Task") {
    lfExecuteJS("LiveFields/disable.js");
} else if (argv["issueType"] == "Bug") {
    lfExecuteJS("LiveFields/enable.js");
}
``` |

**enable.js**

|  |
| --- |
| ```
// The query selector for custom fields change between view and edit screens. Include references to both.
AJS.$("#rowForcustomfield_10301").enable(true);
AJS.$("#qf-field-customfield_10301").enable(true);
``` |

**disable.js**

|  |
| --- |
| ```
// The query selector for custom fields change between view and edit screens. Include references to both.
AJS.$("#rowForcustomfield_10301").enable(false);
AJS.$("#qf-field-customfield_10301").enable(false);
``` |

## Disabling Custom Fields in the Bulk Edit Tool

Using the “enable(false)” jQuery function also works if you would like to disable a custom field found in the bulk edit tool.

```
AJS.$("#customfield_10500").enable(false);
AJS.$("#cbcustomfield_10500").enable(false);
```

## Additional Help

Need help implementing this script? Talk to me directly to me by clicking on the bot on this page. 

## Related articles



> Macro (contentbylabel)

> Macro (details)
> 
> | Related issues |  |
> | --- | --- |