# FormText.Type Property

> Gets or sets the type of the field.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 15.0
- **Namespace:** `TXTextControl.DocumentServer.Fields`
- **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.Fields > FormText.Type Property
- **525 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/formtext/type-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/formtext/type-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/formtext/type-property/llms-full.txt

---

### Description

Gets or sets the type of the field.

### Syntax

```csharp
public FormText.FormTextBoxType Type { get; set; }
```

```vbnet
Public Property Type As FormText.FormTextBoxType
```

### Members

| Value | Description |
|---|---|
| RegularText | Regular text is allowed. |
| Number | Only numeric values are allowed. |
| Date | A valid date format is allowed. |
| CurrentDate | The current date will be inserted. |
| CurrentTime | The current time will be inserted. |
| Calculation | A calculation is allowed. |

### Examples

The following example uses `FormText.Type` to configure type as part of the form text workflow. The configured value is checked before the workflow continues.

```csharp
formText.Type = TXTextControl.DocumentServer.Fields.FormText.FormTextBoxType.RegularText;
Console.WriteLine($"Type used by Form Text: {formText.Type}");
```

```vbnet
formText.Type = TXTextControl.DocumentServer.Fields.FormText.FormTextBoxType.RegularText
Console.WriteLine($"Type used by Form Text: {formText.Type}")
```

### Limitations

This property is not used by the [DocumentServer.Web.DocumentViewer](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-documentserver-web/documentviewer/llms-full.txt) component.

---

## Nearby

- **Previous:** [FormText.MaxLength Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/formtext/maxlength-property/llms-full.txt)
- **Next:** [IfField Class](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol-documentserver-fields/iffield/llms-full.txt)
