Attribute Types
fabric supports the following attribute types for storing category information:- Text: A sequence of characters. You may store any combination of text, numbers, or special characters. Text attribute has three subtypes:
- Small text: For single-line text attributes.
- Text Area: For multi-line text attributes.
- HTML: For text area attributes that support HTML.
- Number Only: An attribute type for values that are always a number.
- Date: All date-related formats. Bulk import of the date attribute uses the date format selected when the attribute was created. Once selected, the date format can’t be changed. If the format needs to be changed, you must delete the attribute and create it again using the required format.
- Boolean: A Boolean value (true/false) for a category attribute. While importing attributes from an external system, make sure the true or false values are specified for all Boolean attribute types.
| Attribute Type | Localize this attribute | Attribute title | Description | Use JavaScript to calculate value | Validations | Is this attribute mandatory? | Type of text | Date Format | Decimal |
|---|---|---|---|---|---|---|---|---|---|
| Text | Optional | Required | Optional | Optional | Optional | Required | Required | N/A | N/A |
| Number Only | Optional | Required | Optional | Optional | Optional | Required | N/A | N/A | Optional |
| Date | Optional | Required | Optional | Optional | Optional | Required | N/A | Required | N/A |
| Boolean | Optional | Required | Optional | Optional | Optional | Required | N/A | N/A | N/A |
After creating a category attribute, you cannot modify its attribute type. If you want to use a different attribute type, you must create a new category attribute with the required type.
