Class
ComboBoxField

Choice field with a drop‑down list; optionally allows free‑text entry when editable.

Definition

Constructors

ComboBoxField(string)

Initializes a new instance of ComboBoxField class.

Declaration

cs-api-definition
public ComboBoxField(string fieldName)

Parameters

fieldName

string

The field name.

Properties

DefaultValue

Gets or sets the option selected when the form is reset to defaults.

Declaration

cs-api-definition
public ChoiceOption DefaultValue { get; set; }

Property Value

ChoiceOption

The default choice option to be selected on form reset, or null if no default is specified.

FieldType

Gets the field category reported to viewers for rendering and processing.

Declaration

cs-api-definition
public override FormFieldType FieldType { get; }

Property Value

FormFieldType

Overrides FormField.FieldType

HasEditableTextBox

Gets or sets whether the drop‑down includes an editable text area so users can type custom values.

Declaration

cs-api-definition
public bool HasEditableTextBox { get; set; }

Property Value

bool

true if users can type custom text; false if they can only select from predefined options.

ShouldSpellCheck

Gets or sets whether spell checking applies to text typed in the editable area.

Declaration

cs-api-definition
public bool ShouldSpellCheck { get; set; }

Property Value

bool

true to enable spell checking; false to disable it.

Value

Gets or sets the currently selected option; when editable, may reflect user‑typed text instead of a predefined option.

Declaration

cs-api-definition
public ChoiceOption Value { get; set; }

Property Value

ChoiceOption

The selected choice option, or null if no option is selected.