

# Standardize metadata using metadata forms

With metadata forms, you can define structured templates that capture specific information about a table. A form is a set of typed fields (text, numbers, dates, booleans) that you design to match the information you want to track. For example, you might create a form called "Data Retention Policy" with a string field for retention period, a date field for next review date, and a boolean field for whether the data contains PII. When the form is attached to a table during curation, the person curating the table fills in the field values. Unlike free-text descriptions, form fields are structured and searchable. You can later filter the catalog to find all tables where "Contains PII" is true, or where the retention period is "90 days."

**Note**  
You can manage metadata forms from **Manage** in your project or, as a domain administrator, from the Domain Management Portal. For the Domain Management Portal steps, see [Create and manage metadata forms](catalog-iam-metadata-forms.md).

The **Metadata forms** page shows all forms in the domain. The table shows each form's name, description, status (enabled or disabled), and when the metadata was last updated. You can search for forms using the search bar at the top.

## Create a metadata form
<a name="create-metadata-form"></a>

Each metadata form has two names. The **Display name** is what people see in the admin portal and when the form is attached to an asset. You use the **Technical name** when you work with APIs. You cannot change the technical name after you create the form, so choose it carefully.

**To create a metadata form**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose **Create Form**.

1. For **Display name**, enter a human-readable name (for example, "Data Retention Policy" or "Access Control Policy").

1. For **Technical name**, enter an API-friendly name (for example, "DataRetentionPolicy"). This name must be 1 to 64 characters and can contain letters, numbers, spaces, dashes, and underscores.

1. (Optional) For **Description**, enter a description of what this form captures.

1. Choose **Create Metadata Form**.

The form detail page opens. By default, new forms are enabled. To disable the form while you add more fields, turn off the **Enabled** toggle before you create the form.

**Note**  
You cannot change the technical name after creation. If you need a different technical name, delete the form and create a new one.

## Edit a metadata form
<a name="edit-metadata-form"></a>

You can change the display name or description of a metadata form after you create it. You cannot change the technical name.

**To edit a metadata form**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Open the metadata form you want to edit.

1. From the **Actions** menu, choose **Edit**.

1. Edit the display name, the description, or both for your form.

## Enable or disable a metadata form
<a name="enable-disable-form"></a>

Each form has a **Disabled/Enabled** toggle on its detail page. When a form is enabled, you can attach it to assets during metadata curation. When a form is disabled, you cannot attach it to new assets.

**To enable or disable a metadata form**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose the form you want to enable or disable.

1. On the form detail page, toggle the **Disabled/Enabled** switch.

## Add a field to a form
<a name="create-field-in-metadata-form"></a>

The form detail page has a split layout. The **Fields** panel lists the fields in the form, which you can drag to reorder. The **Field details** panel shows the properties of the selected field or the inline editor for adding a new field.

**To add a field to a form**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose the form you want to add a field to.

1. In the **Fields** panel, choose **Create field**. A **New Field** entry appears and the field editor opens.

1. (Optional) For **Display name**, enter a human-readable name for the field (for example, "Access Level").

1. For **Technical name**, enter an API-friendly name (for example, "access\_level"). This field is required.

1. (Optional) For **Description**, enter a description of what this field captures.

1. For **Field type**, choose one of the following types: **String** (free-form text), **Integer** (a whole number), **Long** (a large whole number), **Float** (a number with decimal places), **Double** (a large number with decimal places), **Boolean** (a true/false value), **Date** (a calendar date), or **Business glossary** (a term from a glossary).
**Note**  
When you choose **Business glossary** as the field type, you select which glossary to use for this field. When someone later applies this form to an asset, they pick a term from that glossary as the field value instead of typing free-form text. This is useful when you want to standardize how people classify assets. For example, you might choose a compliance category or a data domain from a controlled vocabulary. Only enabled glossaries appear in the list of available glossaries. For more information about enabling glossaries, see [Enable or disable a glossary](manage-business-glossaries.md#enable-disable-glossary).

Before saving, you can configure the following additional settings for the field:
+ **String length** (String fields only) – Set the minimum and maximum character length.
+ **Searchable** – Under **Search filters**, select this if you want the field's values to appear as filter options in catalog search.
+ **Required** – Under **Requirement options**, choose **Required** if this field must be filled in whenever the form is attached to an asset. The default is **Optional**.

When you are done, choose **Add field**.

## Edit a field
<a name="edit-field-in-metadata-form"></a>

**To edit a field**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose the form that contains the field.

1. In the **Fields** panel, choose the field you want to edit.

1. In the **Field details** panel, choose **Edit**.

1. Update the field properties.

1. Choose **Save**.

## Delete a field
<a name="delete-field-in-metadata-form"></a>

**To delete a field**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose the form that contains the field.

1. In the **Fields** panel, choose the field you want to delete.

1. In the **Field details** panel, choose **Delete**.

1. Confirm the deletion.

## Delete a metadata form
<a name="delete-metadata-form"></a>

Before you can delete a metadata form, you must first disable it and detach it from all assets where it is currently used.

**To delete a metadata form**

1. Navigate to Amazon SageMaker Unified Studio using the URL from your admin and log in using your SSO or AWS credentials. 

1. Choose **Manage** in the left navigation pane.

1. Under **Catalog management**, choose **Metadata forms**.

1. Choose the form you want to delete.

1. Toggle the **Disabled/Enabled** switch to disable the form.

1. Detach the form from all assets where it is currently attached.

1. Choose **Actions**, then choose **Delete**.

1. Confirm the deletion.

**Note**  
You cannot delete a metadata form that is still enabled or still attached to assets.