# AcroForms.FormButton Constructor

> Initializes a new instance of the FormButton 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.FormButton Constructor
- **434 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formbutton/constructor/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formbutton/constructor/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formbutton/constructor/llms-full.txt

---

### Description

Initializes a new instance of the FormButton class.

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

### Syntax

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

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

### Parameters

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

### Examples

The following example creates a Form Button instance and configures its field name setting for a document workflow.

```csharp
TXTextControl.DocumentServer.PDF.AcroForms.FormButton formButton = new(new TXTextControl.DocumentServer.PDF.AcroForms.FormField());
formButton.FieldName = "CustomerName";
```

```vbnet
Dim formButton As New TXTextControl.DocumentServer.PDF.AcroForms.FormButton(New TXTextControl.DocumentServer.PDF.AcroForms.FormField())
formButton.FieldName = "CustomerName"
```

---

## Nearby

- **Previous:** [AcroForms.FormButton Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formbutton/llms-full.txt)
- **Next:** [AcroForms.FormCheckBox Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-pdf/acroforms-formcheckbox/llms-full.txt)
