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

# Enum UDefFieldType

> Field type: 1 = Number, 2 = Short text, 3 = Long text, 4 = Date, 5 = Unlimited date, 6 = Checkbox, 7 = Drop-down listbox, 8 = Decimal

Field type: 1 = Number, 2 = Short text, 3 = Long text, 4 = Date, 5 = Unlimited date, 6 = Checkbox, 7 = Drop-down listbox, 8 = Decimal

## Syntax

```crmscript theme={null}
UDefFieldType
```

## Fields

| Name          | Description                                                       |
| ------------- | ----------------------------------------------------------------- |
| Number        | Number (32-bit integer)                                           |
| ShortText     | Short text, up to 39 characters, stored in the 'small' table      |
| LongText      | Long text, up to 199 characters, stored in the 'large' table      |
| Date          | Date, between 1.1.1970 and 2038, stored as seconds after 1.1.1970 |
| UnlimitedDate | Unlimited date (without time), stored as an YYYYMMDD string       |
| Checkbox      | Checkbox, stored as an integer, 1 = checked                       |
| List          | List item reference, stored as an integer ID                      |
| Decimal       | Decimal / floating point, stored as a double                      |


## Related topics

- [SuperOffice.WebApi.Data.UDefFieldType](/en/api/reference/webapi/SuperOffice.WebApi.Data.UDefFieldType.md)
- [SuperOffice.WebApi.Agents.UserDefinedFieldInfoAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.UserDefinedFieldInfoAgent.md)
- [SuperOffice.WebApi.Agents.IUserDefinedFieldInfoAgent](/en/api/reference/webapi/SuperOffice.WebApi.Agents.IUserDefinedFieldInfoAgent.md)
- [Enum UDefType](/en/automation/crmscript/reference/CRMScript.NetServer.UDefType.md)
- [udeffieldtype](/en/api/mdo-providers/reference/udeffieldtype.md)
- [How to create a user-defined field using the web services API](/en/api/web-services/howto/custom-objects/rest-create-udef-field.md)
