# ComboBoxFieldProperties

## Content

[**DsPdfJS API v9.1.3**](../README)

***

[DsPdfJS API](../globals) / ComboBoxFieldProperties

# Type Alias: ComboBoxFieldProperties

> **ComboBoxFieldProperties** = [`ChoiceFieldProperties`](ChoiceFieldProperties) & `object`

Defines properties of a [ComboBoxField](../classes/ComboBoxField).

## Type Declaration

### defaultText?

> `optional` **defaultText**: `string`

The default value of this [ComboBoxField](../classes/ComboBoxField) as a string.

The behavior varies based on the 'editable' property:
- When 'editable' is false: returns the text of the selected item from the 'items' collection
- When 'editable' is true: allows getting/setting any custom string value, regardless of the 'items' collection

### defaultValue?

> `optional` **defaultValue**: `number`

The default value of [ComboBoxField](../classes/ComboBoxField),
value is specified as index of selected item.

### editable?

> `optional` **editable**: `boolean`

Indicating whether the combo box includes an editable text box as well
as a drop-down list.

### text?

> `optional` **text**: `string`

The string value of this [ComboBoxField](../classes/ComboBoxField).

The behavior varies based on the 'editable' property:
- When 'editable' is false: returns the text of the selected item from the 'items' collection
- When 'editable' is true: allows getting/setting any custom string value, regardless of the 'items' collection

### type

> **type**: `"combobox"`

### value?

> `optional` **value**: `number`

The value of [ComboBoxField](../classes/ComboBoxField),
value is specified as index of selected item.
