# Instruction.IsInitialInstruction Property

> Gets or sets a value indicating whether this Instruction is handled when the document is initialized as a form. By default, all conditional instructions are applied when the document is changed to or loaded as a form. In this context, if this property is set to false, the instruction does not execute any actions, even if the requirements are fulfilled. The default value is true.

- **Product:** TX Text Control .NET for WPF
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 28.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.WPF.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 WPF > Reference > TXTextControl > Instruction.IsInitialInstruction Property
- **665 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/instruction/isinitialinstruction-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/instruction/isinitialinstruction-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/instruction/isinitialinstruction-property/llms-full.txt

---

### Description

Gets or sets a value indicating whether this `Instruction` is handled when the document is initialized as a form. By default, all conditional instructions are applied when the document is changed to or loaded as a form. In this context, if this property is set to false, the instruction does not execute any [actions](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/instruction/instructiontypes-enumeration/llms-full.txt), even if the requirements are fulfilled. The default value is true.

### Syntax

```csharp
public bool IsInitialInstruction { get; set; }
```

```vbnet
Public Property IsInitialInstruction As Boolean
```

### Examples

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

```csharp
CheckFormField approvalField = new(false) { Name = "Approved" };
textControl.FormFields.Add(approvalField);
Instruction instruction = new(approvalField, Instruction.InstructionTypes.IsEnabled, true);

instruction.IsInitialInstruction = true;
if (instruction.IsInitialInstruction)
{
    Console.WriteLine("Instruction: Is Initial Instruction is enabled.");
}
```

```vbnet
Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim instruction As New Instruction(approvalField, Instruction.InstructionTypes.IsEnabled, True)

instruction.IsInitialInstruction = True
If instruction.IsInitialInstruction Then
    Console.WriteLine("Instruction: Is Initial Instruction is enabled.")
End If
```

---

## Nearby

- **Previous:** [Instruction.IsFormFieldChangeInstruction Property](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/instruction/isformfieldchangeinstruction-property/llms-full.txt)
- **Next:** [Justification Enumeration](https://docs.textcontrol.com/tx-text-control-dotnet-wpf/reference/txtextcontrol/justification/enumeration/llms-full.txt)
