# Condition.FormField Property

> Gets the FormField whose property value is to be compared with the condition's comparison value.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > Condition.FormField Property
- **660 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/formfield-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/formfield-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/formfield-property/llms-full.txt

---

### Description

Gets the [FormField](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/llms-full.txt) whose property value is to be compared with the condition's comparison value.

### Syntax

```csharp
public FormField FormField { get; }
```

```vbnet
Public ReadOnly Property FormField As FormField
```

### Examples

The following example builds a rule around an approval check box in a fillable form by using `Condition.FormField`.

```csharp
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Condition condition = new(approvalField, true);

Console.WriteLine($"Form Field: {condition.FormField}");
Console.WriteLine("Condition is ready for use.");
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim condition As New Condition(approvalField, True)

Console.WriteLine($"Form Field: {condition.FormField}")
Console.WriteLine("Condition is ready for use.")
```

### Limitations

Read only.

### Remarks

The value represents the constructor's `formField` parameter value. It has to be [part of the document](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/formfields-property/llms-full.txt) when the [ConditionalInstruction](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstruction/llms-full.txt) instance that is [related](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstruction/conditions-property/llms-full.txt) to this `Condtition` object is [added](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/conditionalinstructioncollection/add-method/llms-full.txt) to the [FormFieldCollection.ConditionalInstructions](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfieldcollection/conditionalinstructions-property/llms-full.txt) collection.

---

## Nearby

- **Previous:** [Condition Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/constructor/llms-full.txt)
- **Next:** [Condition.ItemComparisonFlags Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/condition/itemcomparisonflags-enumeration/llms-full.txt)
