dotnet add package TXTextControl.TextControl.WPF.SDK.NET 8 and later. For .NET Framework, reference TXTextControl.dll from the setup.
Description
An object of the ConditionalInstruction class represents a list of form field related instructions that are executed when specific requirements, represented by an array of conditions, are fulfilled. Objects of that class can be added to an instance of the ConditionalInstructionCollection class. The TextControl validates the conditions and executes resulting instructions in case the document switches into the form protection mode and in case the related form fields have been changed. In order to switch the document into the form protection mode, the TextControl.EditMode property must be set to EditMode.ReadAndSelect and the TextControl.DocumentPermissions.ReadOnly property must be set to true. To execute Conditional Instructions in this context, the TextControl.IsFormFieldValidationEnabled property value must to be set to true.
Syntax
publicclassConditionalInstruction
PublicClass ConditionalInstruction
Examples
The following example builds a rule around an approval check box in a fillable form.
Dim approvalField AsNew CheckFormField(False) With { .Name = "Approved" }
textControl.FormFields.Add(approvalField)
Dim conditionalInstruction AsNew ConditionalInstruction()
Gets or sets an array of conditions, that represent the requirements that has to be fulfilled to execute the specified instructions. Each element of that array is linked by a logical connective connector with its previous element. Based on these relationships, in which the individual conditions relate to each other, it is evaluated whether the requirements to execute the instructions has been fulfilled.