TX Text Control .NET Server

IsFormFieldValidationEnabled Property

Property|Introduced in 28.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Server.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll

Description

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.

Syntax

public bool IsFormFieldValidationEnabled { get; set; }

Examples

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

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.");
}