> ## 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.

# NSFieldInfoShortText

> Short text string custom database field.

Short text string custom database field.

## Constructors

### NSFieldInfoShortText()

```crmscript theme={null}
NSFieldInfoShortText
```

Initializes a new instance of the NSFieldInfoShortText class.

## Methods

## GetChoices()

```crmscript theme={null}
String[] GetChoices()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)\[] - List of items to choose from. Null = not a dropdown list.

## GetDefaultValue()

```crmscript theme={null}
String GetDefaultValue()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Default string value.

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
String defaultValue = thing.GetDefaultValue();
```

## GetFormatMask()

```crmscript theme={null}
String GetFormatMask()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Formatting mask, can be whatever the controls understand (currently nothing).

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
String formatMask = thing.GetFormatMask();
```

## GetIsHtml()

```crmscript theme={null}
Bool GetIsHtml()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Do not escape HTML in field when displaying contents.

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
Bool isHtml = thing.GetIsHtml();
```

## GetTextLength()

```crmscript theme={null}
Integer GetTextLength()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Length (in characters) of a text field, 0 for other types.

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
Integer textLength = thing.GetTextLength();
```

## SetChoices(String\[])

```crmscript theme={null}
Void SetChoices(String[] choices)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## SetDefaultValue(String)

```crmscript theme={null}
Void SetDefaultValue(String defaultValue)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
String defaultValue;
thing.SetDefaultValue(defaultValue);
```

## SetFormatMask(String)

```crmscript theme={null}
Void SetFormatMask(String formatMask)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
String formatMask;
thing.SetFormatMask(formatMask);
```

## SetIsHtml(Bool)

```crmscript theme={null}
Void SetIsHtml(Bool isHtml)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
Bool isHtml;
thing.SetIsHtml(isHtml);
```

## SetTextLength(Integer)

```crmscript theme={null}
Void SetTextLength(Integer textLength)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSFieldInfoShortText thing;
Integer textLength;
thing.SetTextLength(textLength);
```


## Related topics

- [SuperOffice.WebApi.Data.FieldInfoShortText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoShortText.md)
- [SuperOffice.WebApi.Data.FieldInfoListText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoListText.md)
- [SuperOffice.WebApi.Data.FieldInfoLongText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoLongText.md)
- [Get Custom Field Info](/en/api/reference/restful/rest/fieldinfobase/get-custom-field-info.md)
