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

# NSFieldInfoLongText

> Long Text custom database field.

Long Text custom database field.

## Constructors

### NSFieldInfoLongText()

```crmscript theme={null}
NSFieldInfoLongText
```

Initializes a new instance of the NSFieldInfoLongText 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}
NSFieldInfoLongText thing;
String defaultValue = thing.GetDefaultValue();
```

## 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}
NSFieldInfoLongText thing;
Bool isHtml = thing.GetIsHtml();
```

## GetNumRows()

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

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Number of lines of text to show. Text area height.

**Example:**

```crmscript theme={null}
NSFieldInfoLongText thing;
Integer numRows = thing.GetNumRows();
```

## GetUseTextArea()

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

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Use a multi-line text area?

**Example:**

```crmscript theme={null}
NSFieldInfoLongText thing;
Bool useTextArea = thing.GetUseTextArea();
```

## 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}
NSFieldInfoLongText thing;
String defaultValue;
thing.SetDefaultValue(defaultValue);
```

## SetIsHtml(Bool)

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

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

**Example:**

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

## SetNumRows(Integer)

```crmscript theme={null}
Void SetNumRows(Integer numRows)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoLongText thing;
Integer numRows;
thing.SetNumRows(numRows);
```

## SetUseTextArea(Bool)

```crmscript theme={null}
Void SetUseTextArea(Bool useTextArea)
```

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

**Example:**

```crmscript theme={null}
NSFieldInfoLongText thing;
Bool useTextArea;
thing.SetUseTextArea(useTextArea);
```


## Related topics

- [SuperOffice.WebApi.Data.FieldInfoLongText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoLongText.md)
- [ExtraFieldsInfo](/en/automation/crmscript/reference/CRMScript.Native.ExtraFieldsInfo.md)
- [SuperOffice.WebApi.Data.FieldInfoBase](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoBase.md)
- [Enum TextType](/en/automation/crmscript/reference/CRMScript.NetServer.TextType.md)
- [Get Custom Field Info](/en/api/reference/restful/rest/fieldinfobase/get-custom-field-info.md)
