# Deleting & Unlinking Fields

You can also "unlink" a field from an entire screen set, in which case it will no longer appear as an available field.

{% hint style="info" %}
**Best Practice**

System Fields are often needed by scripts that run in the background of ASM.  Not using, or deleting these fields can have unintended consequences. &#x20;

**If you do not want to use a system field, rather than delete it, simply "Hide" the field instead, or alternatively, create a "System Fields" collapsable section on your screen and place all the System fields into this section that you do not want displayed. Then, you can simply hide the whole of the section.**

*To see the system fields for calls, requests, tasks and CMDB items, please refer to the pages that directly follow this section.*
{% endhint %}

## What Happens When a Field is Removed

* The field is still available in the list of fields associated with the selected screen set and may be inserted again unless it is unlinked as well.
* If you remove a non data field, such as a section or layout grid, this also removes all the fields in the non data field.
* <mark style="color:red;">**The Forward To field on a Request Submission Form cannot be hidden or removed as it is a mandatory field.**</mark> However, this field is automatically hidden on the submission form viewed on the Self Service Portal when a **Forward To** analyst or group is assigned on the Workflow Template associated with this submission form.

## Removing a Field from a Screen

{% hint style="danger" %}

## Do Not Delete ASM System Fields

Each ASM Screen contains a Dead Zone and any field or element that has been deleted can be found there.  The dead zone can be found in the raw HTML of your screen.  While it makes restoring fields previously deleted easy, it serves a more important purpose: **The Dead Zone is your fail-safe.  It hangs onto fields so that should you delete a necessary system field (one required by any script), the screen will still function and load correctly.**  [**See also Troubleshooting Screens: The Dead Zone**](https://docs.alemba.com/asm-hermes/setup-and-configure-asm/configuring-your-system/configuring-screens/building-screens-in-asm-designer/troubleshooting-screens-the-screens-dead-zone)

This means the content of the Dead Zone can sometimes cause issues if you have&#x20;

* deleted a field the system needs for scripting and also cleared it from the dead zone, or alternatively,&#x20;
* Re-added a deleted field back to your screen so that it exists multiple times on the same screen (in the main "Live" body of the screen and also in the Dead Zone) with potentially different values. &#x20;
  {% endhint %}

{% hint style="info" %}

### Before you start

1. Before editing screens, we strongly recommend that you undertake appropriate training on ASM Designer.

2. Exercise caution when using ASM Designer to modify screen designs which have been customized by Alemba® Professional Services. Contact your Alemba® account manager if you are uncertain about whether your actions will impact these customizations.

3. To delete fields from a screen using ASM Designer, you must have **Designer** selected in your General Access Security Role.

4. To maintain an audit trail of changes made to screens, forms and message templates, Designer must be selected in the Auditing window.
   {% endhint %}

5. When the screen is open, select the field you want to delete. The **Field Settings** tab is automatically selected in the left hand pane.

6. Right-click on the field and select **Delete**. Alternatively, select the field and then select Remove From Screen at the bottom of the left hand pane.

`If you are deleting a custom field associated with another screen set, the field is removed from the current screen only. It will still appear on other screens in which it has been added, however, it will no longer be available in the list of available fields.`&#x20;

3. In the Confirm Deletion warning box, select **Yes** to confirm the deletion.
4. Select **Save** at the bottom of the window to save changes to the current screen.&#x20;

**Save All** saves changes to all open screens. If auditing is turned on, the Change Reasons window will display, prompting you to add a change reason.

### Undo a Deletion

1. If you wish to undo the deletion, select the **Undo** button in the top right corner of the window.&#x20;
2. Save the changes.

## Deleting a Custom Field from ASM, Globally

You can delete a field globally by accessing the field through the 'Other Screen Sets" option **Data Fields For** drop-down.  When deleting field through this method, they are deleted from the database.

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/CcxgZomDgo2s16YcEz4w/Screen%20Shot%202022-12-08%20at%201.40.33%20PM.png" alt=""><figcaption></figcaption></figure>

{% hint style="danger" %}
You cannot undo this operation.  Ensure the field is not being used on other screen sets or you will receive a warning message.  This message will advise what other screen sets are using the field.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/wf2WJy5qiW7Y4xVPedIH/Screen%20Shot%202022-12-08%20at%201.41.13%20PM.png" alt=""><figcaption></figcaption></figure>

## Unlinking a Field from a Screen Set

If you want to remove a custom field entirely from the current screen set (as opposed to simply deleting the field you added to a screen):

1. Display a screen within the screen set and remove the custom field clicking "**Unlink**".

<figure><img src="https://content.gitbook.com/content/hlW9jKl7dcDggHAPhNU9/blobs/Tc51s03wE4CUFsqoOEzM/Screen%20Shot%202022-12-08%20at%201.44.31%20PM.png" alt=""><figcaption></figcaption></figure>

2. The field is removed from the current screen and the list of available fields. The field will still appear on other screens in which it has already been added.&#x20;
