---
title: "lfHide"
canonical: "https://support.appfire.com/space/PSJ/15480364/lfHide"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | lfHide(field) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Hides the given field.

Hides the given field.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| field | String | Yes | Specifies the field to hide.See Standard Variables for available fields. |

## Return Type

**None**

## Example

The following code will hide the issue type field from the issue if the assignee is not an admin.

```javascript
if(assignee != "admin") {
     lfHide("issueType");
 }
```

Now that the field is hidden, you can use lfShow to display it on the issue screen.

> ⚠️ Hiding fields is not a security solution, the field is present in HTML and can still be inspected via a **Show page source** option. We recommend that you use this function only for the cases when you want to add certain logic on the screen only.

## See also

> Macro (contentbylabel)