IsFormFieldChangeInstruction Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK 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; }Public Property IsFormFieldChangeInstruction As BooleanExamples
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.");
}Dim approvalField As New CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim instruction As New Instruction(approvalField, Instruction.InstructionTypes.IsEnabled, True)
instruction.IsFormFieldChangeInstruction = True
If instruction.IsFormFieldChangeInstruction Then
Console.WriteLine("Instruction: Is Form Field Change Instruction is enabled.")
End If