New to Telerik Document ProcessingStart a free 30-day trial

List box form field that shows a scrollable set of predefined options; supports single or multi‑selection for capturing one or several values in a PDF form.

Definition

Constructors

Create a list box field with the specified fieldName.

C#
public ListBoxField(string fieldName)
Parameters:fieldNamestring

The field name.

Properties

Gets or sets whether the user may select more than one option (enables multi‑value submission when true).

C#
public bool AllowMultiSelection { get; set; }
Property Value:

true to allow multiple selection; false to restrict selection to a single item.

Gets or sets the options selected after a form reset (default selection state).

C#
public ChoiceOption[] DefaultValue { get; set; }
Property Value:

An array of default selected options, or null if no default selections are specified.

Gets the form field type identifier (ListBox) used during export and processing.

C#
public override sealed FormFieldType FieldType { get; }

Overrides: FormField.FieldType

Gets or sets the zero‑based index of the first option displayed (initial scroll position).

C#
public int TopIndex { get; set; }

Gets or sets the currently selected options; assign an array to change the selection and refresh widget appearances.

C#
public ChoiceOption[] Value { get; set; }
Property Value:

An array containing all selected options, or null if no options are selected.