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

# NSFieldInfoListText

## Constructors

### NSFieldInfoListText()

```crmscript theme={null}
NSFieldInfoListText
```

Initializes a new instance of the NSFieldInfoListText class.

## Methods

## GetChoices()

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

**Returns:** [CRMScript.Global.String](CRMScript.Global.String)\[] - List of items to choose from.

**Example:**

```crmscript theme={null}
NSFieldInfoListText thing;
String[] choices = thing.GetChoices();
```

## GetDefaultValue()

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

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

**Example:**

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

## 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}
NSFieldInfoListText thing;
Integer textLength = thing.GetTextLength();
```

## SetChoices(String\[])

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

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

**Example:**

```crmscript theme={null}
NSFieldInfoListText thing;
String[] choices;
thing.SetChoices(choices);
```

## SetDefaultValue(String)

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

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

**Example:**

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

## SetTextLength(Integer)

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

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

**Example:**

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


## Related topics

- [NSFieldInfoLongText](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoLongText.md)
- [NSFieldInfoShortText](/en/automation/crmscript/reference/CRMScript.NetServer.NSFieldInfoShortText.md)
- [SuperOffice.WebApi.Data.FieldInfoListText](/en/api/reference/webapi/SuperOffice.WebApi.Data.FieldInfoListText.md)
- [Get Custom Field Info List](/en/api/reference/restful/agent/userdefinedfieldinfo_agent/get-custom-field-info-list.md)
