# FormFieldCollection.ConditionalInstructions Property

> Gets a collection of all conditional instructions that references to the form fields of the collection. The property's value is an object of type ConditionalInstructionCollection.

- **Product:** TX Text Control .NET for Windows Forms
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WinForms.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 for Windows Forms > Reference > TXTextControl > FormFieldCollection.ConditionalInstructions Property
- **753 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfieldcollection/conditionalinstructions-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfieldcollection/conditionalinstructions-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfieldcollection/conditionalinstructions-property/llms-full.txt

---

### Description

Gets a collection of all conditional instructions that references to the [form fields](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfield/llms-full.txt) of the collection. The property's value is an object of type [ConditionalInstructionCollection](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/conditionalinstructioncollection/llms-full.txt).

### Syntax

```csharp
public ConditionalInstructionCollection ConditionalInstructions { get; }
```

```vbnet
Public ReadOnly Property ConditionalInstructions As ConditionalInstructionCollection
```

### Examples

The following example works with form fields in the current document by using `FormFieldCollection.ConditionalInstructions`.

```csharp
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
FormFieldCollection formFieldCollection = textControl.FormFields;
formFieldCollection.Add(new CheckFormField(false) { Name = "AcceptTerms", ID = 100 });

foreach (ConditionalInstruction conditionalInstruction in formFieldCollection.ConditionalInstructions)
{
    conditionalInstruction.Name = "CustomerName";
}
```

```vbnet
textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim formFieldCollection As FormFieldCollection = textControl.FormFields
formFieldCollection.Add(New CheckFormField(False) With { .Name = "AcceptTerms", .ID = 100 })

For Each conditionalInstruction As ConditionalInstruction In formFieldCollection.ConditionalInstructions
    conditionalInstruction.Name = "CustomerName"
Next
```

### Limitations

Read only.

### Remarks

The collection cannot be modified, if the [TextControl.IsFormFieldValidationEnabled](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/isformfieldvalidationenabled-property/llms-full.txt) property value is set to false or the [TextControl.EditMode](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/textcontrol/editmode-property/llms-full.txt) is set to `EditMode.ReadAndSelect`.

---

## Nearby

- **Previous:** [FormFieldCollection.Clear Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfieldcollection/clear-method/llms-full.txt)
- **Next:** [FormFieldCollection.CopyTo Method](https://docs.textcontrol.com/tx-text-control-dotnet-winforms/reference/txtextcontrol/formfieldcollection/copyto-method/llms-full.txt)
