# AcroForms.FormChoiceField Constructor

> Initializes a new instance of the FormChoiceField class.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Constructor
- **Introduced:** 29.0
- **Namespace:** `TXTextControl.DocumentServer.PDF.AcroForms`
- **Package:** `TXTextControl.TextControl.WPF.SDK` (assembly `TXDocumentServer.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXDocumentServer.dll` from the setup
- **Path:** TX Text Control .NET for WPF > Reference > TXTextControl.DocumentServer.PDF > AcroForms.FormChoiceField Constructor
- **439 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/constructor/llms-full.txt

---

### Description

Initializes a new instance of the FormChoiceField class.

Initializes a new instance of the FormChoiceField class based on a given FormField.

### Syntax

```csharp
public FormChoiceField(FormField parent);
```

```vbnet
Public Sub New(parent As FormField)
```

### Parameters

| Parameter | Description |
|---|---|
| parent | Specifies the parent FormField. |

### Examples

The following example creates a Form Choice Field instance and configures its can edit setting for a document workflow.

```csharp
TXTextControl.DocumentServer.PDF.AcroForms.FormChoiceField formChoiceField = new(new TXTextControl.DocumentServer.PDF.AcroForms.FormField());
formChoiceField.CanEdit = true;
```

```vbnet
Dim formChoiceField As New TXTextControl.DocumentServer.PDF.AcroForms.FormChoiceField(New TXTextControl.DocumentServer.PDF.AcroForms.FormField())
formChoiceField.CanEdit = True
```

---

## Nearby

- **Previous:** [AcroForms.FormChoiceField.CommitOnSelChange Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/commitonselchange-property/llms-full.txt)
- **Next:** [AcroForms.FormChoiceField.DoNotSpellCheck Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formchoicefield/donotspellcheck-property/llms-full.txt)
