TX Text Control .NET Server

IsFormFieldChangeInstruction Property

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

Description

Gets or sets a value indicating whether this Instruction listens to value changes of the related conditions' form fields. If this property is set to false, the instruction ignores any form field change that would cause an action. Otherwise the corresponding actions are executed. The default value is true.

Syntax

public bool IsFormFieldChangeInstruction { get; set; }

Examples

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

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

instruction.IsFormFieldChangeInstruction = true;
if (instruction.IsFormFieldChangeInstruction)
{
    Console.WriteLine("Instruction: Is Form Field Change Instruction is enabled.");
}