# TextViewGenerator.IsFormFieldValidationEnabled Property

> Gets or sets a value indicating whether Conditional Instructions are applied to form fields when the EditMode property is set to EditMode.ReadAndSelect and TextViewGenerator.DocumentPermissions.ReadOnly to true. The default value is false.

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

---

### Description

Gets or sets a value indicating whether Conditional Instructions are applied to [form fields](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/formfield/llms-full.txt) when the [EditMode](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/editmode-property/llms-full.txt) property is set to `EditMode.ReadAndSelect` and [TextViewGenerator.DocumentPermissions.ReadOnly](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/documentpermissions/readonly-property/llms-full.txt) to true. The default value is `false`.

### Syntax

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

```vbnet
Public Property IsFormFieldValidationEnabled As Boolean
```

### Examples

The following example applies bold formatting through the text view generator's selection by using `TextViewGenerator.IsFormFieldValidationEnabled`.

```csharp
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;

textViewGenerator.IsFormFieldValidationEnabled = true;
if (textViewGenerator.IsFormFieldValidationEnabled)
{
    Console.WriteLine("Text View Generator: Is Form Field Validation Enabled is enabled.");
}
```

```vbnet
Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection

textViewGenerator.IsFormFieldValidationEnabled = True
If textViewGenerator.IsFormFieldValidationEnabled Then
    Console.WriteLine("Text View Generator: Is Form Field Validation Enabled is enabled.")
End If
```

---

## Nearby

- **Previous:** [TextViewGenerator.InsertionMode Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/insertionmode-property/llms-full.txt)
- **Next:** [TextViewGenerator.IsTrackChangesEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/textviewgenerator/istrackchangesenabled-property/llms-full.txt)
