> ## Documentation Index
> Fetch the complete documentation index at: https://developer.fabric.inc/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding a List of Values Attribute

List of values attributes allow you to create dropdown menus with defined values across the product list. There are two types of list of values attributes:

* **Single select**: Specifies that the end user can select one option in the list of values.
* **Multiple select**: Specifies that the end user can make multiple selections from the list of values.

## Prerequisites

Ensure you have administrator privileges to fabric **Product Catalog**. For more information, see [Role-Based Access Control](/v3/platform/settings/rbac/role-based-access-control).

## Procedure

1. In the left menu, click **Product Catalog > Attributes > Product**.

   The Product Attributes page is displayed.

2. Click **New Attribute**.

   The Create product attribute page is displayed.

3. Select **List of values**.

4. In the **Attribute title (primary)** field, enter a name for the attribute.

5. (Optional) In the **Description** field, enter a description for the attribute.

6. In the **Type of list** field, select one of the following:
   * **Single select**: Specifies that the end user can select one option in the list of values.
   * **Multiple select**: Specifies that the end user can make multiple selections from the list of values.

7. In the **Enter values** field, enter each value in the list, separated by a comma.

8. In the **Use JavaScript formula to calculate value** field, select one of the following:
   * **Yes**: Specifies that the value for the attribute is calculated using the JavaScript formula that you provide in the **Calculation formula** field. An example of a JavaScript formula is (async () => await attribute('id') \* 10)(). When you select **Yes**, the **Calculation formula** and **Allow manual overwrite fields** are displayed. Do the following to complete the settings:
     * In the **Calculation formula** field, enter a JavaScript formula.
     * In the **Allow manual overwrite** field, choose one of the following:
       * **Yes**: Specifies that you can manually overwrite the attribute value. When the **Use JavaScript formula to calculate value** setting is enabled, the system determines the value based on your provided formula. However, if you enable the manual overwrite option, you can replace the system-calculated value with a custom value during product attribute setup. For more information, see the [Adding an Item](/v3/product-catalog/user-guides/product-catalog/list/items/adding-an-item) section.
       * **No**: Specifies that you can't manually overwrite the attribute value. This is the default setting.
   * **No**: Specifies that the attribute value isn't calculated using a JavaScript formula.

9. In the Validations field, select one of the following:
   * **None**: Specifies that no custom validation is required for the attribute. This is the default setting.
   * **Custom JavaScript**: Specifies that the JavaScript you enter in the **Validation formula** field is used to validate the attribute. The **Validation formula** field is displayed.
   * In the **Validation formula** field, enter a JavaScript validation formula.

10. In the **Is this attribute mandatory?** field, select one of the following:
    * **Yes**: Specifies that the attribute is mandatory when creating an item.
    * **No**: Specifies that the attribute isn't mandatory when creating an item. This is the default selection.

11. Click **Save**.

The list of values attribute with the specified settings is created.

## Related Topics

* [Product Attributes Overview](/v3/product-catalog/user-guides/product-catalog/attributes/product-attributes-overview)
* [Adding a Text Attribute](/v3/product-catalog/user-guides/product-catalog/attributes/adding-a-text-attribute)
* [Adding a Number Only Attribute](/v3/product-catalog/user-guides/product-catalog/attributes/adding-a-number-only-attribute)
* [Adding a Date Attribute](/v3/product-catalog/user-guides/product-catalog/attributes/adding-a-date-attribute)
* [Adding a Boolean Attribute](/v3/product-catalog/user-guides/product-catalog/attributes/adding-a-boolean-attribute)
* [Adding a Serial Attribute](/v3/product-catalog/user-guides/product-catalog/attributes/adding-a-serial-attribute)
* [Importing Product Attributes](/v3/product-catalog/user-guides/product-catalog/attributes/importing-product-attributes)
* [Managing Product Attributes](/v3/product-catalog/user-guides/product-catalog/attributes/managing-product-attributes)
