---
title: "Hiding and showing custom fields that are not supported"
canonical: "https://support.appfire.com/space/PSJ/15482964/Hiding%20and%20showing%20custom%20fields%20that%20are%20not%20supported"
format: markdown
---
> Macro (aura-html)


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/PSJ/pages/15480682). This page will guide you on how to use JavaScript and jQuery as a workaround.

## Inspecting and Copying the Query Selector 

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

## Hiding 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/hide.js");
} else if (argv["issueType"] == "Bug") {
    lfExecuteJS("LiveFields/show.js");
}
``` |

**show.js**

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

**hide.js**

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

![image](media://fa87fc3d-bdcf-465f-9115-dfc8e22c36bb)

 

## 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 |  |
> | --- | --- |