Initializes a new instance of the Instruction class to determine an action that is executed when the defined requirements of the ConditionalInstruction.Conditions array are fulfilled or not fulfilled.

Instruction(FormField, Instruction.InstructionTypes, Object)

public Instruction(FormField formField, Instruction.InstructionTypes instructionType, object instructionValue);
Public Sub New(ByVal formField As FormField, ByVal instructionType As Instruction.InstructionTypes, ByVal instructionValue As Object)

Instruction(FormField, Instruction.InstructionTypes, Object, Object)

public Instruction(FormField formField, Instruction.InstructionTypes instructionType, object instructionValue, object elseInstructionValue);
Public Sub New(ByVal formField As FormField, ByVal instructionType As Instruction.InstructionTypes, ByVal instructionValue As Object, ByVal elseInstructionValue As Object)

Parameters

Parameter Description
formField Specifies the form field to which the specified action is executed.
instructionType Specifies the type of the action to perfom.
instructionValue Specifies the desired value that is set by the specified action when the defined requirements of the ConditionalInstruction.Conditions array are fulfilled.
Event Description
IsEnabled Boolean
IsValueValid Boolean
SetValue (CheckFormField) Boolean
SetValue (TextFormField) String (null or String.Empty to remove content)
SetValue (SelectionFormField) String (null or String.Empty to remove content)
SetValue (DateFormField) System.DateTime (null to remove content)
SetItems (only SelectionFormField) String[] (null or String[0] to remove items)
elseInstructionValue Specifies the desired value that is set by the specified action when the defined requirements of the ConditionalInstruction.Conditions array are not fulfilled.
Event Description
IsEnabled Boolean
IsValueValid Boolean
SetValue (CheckFormField) Boolean
SetValue (TextFormField) String (null or String.Empty to remove content)
SetValue (SelectionFormField) String (null or String.Empty to remove content)
SetValue (DateFormField) System.DateTime (null to remove content)
SetItems (only SelectionFormField) String[] (null or String[0] to remove items)