Else condition action

Use an Else condition action to make form actions more flexible and easier to read. At runtime, all the actions within the Else condition are executed if the Begin condition is not met.

An Else condition action may include:

  1. a Begin condition

  2. a regular action, such as Redirect

  3. an Else condition

  4. a regular action

  5. an End condition

You can create actions in any order. However, once created, you must arrange them in the following order: Begin condition > Regular action > Else condition > Regular > End condition. For example,

BeginCondition1
 Clear1
ElseCondition1 
 Close1
EndCondition1

You can create nested actions within the Begin, Else, and End conditions. Once created, nested actions appear indented making it easier to determine the actions that are bound within a condition. For example,

BeginCondition1
 Clear1
ElseCondition1 
 Close1
BeginCondition2
 Close1
ElseCondition2
 Close1
EndCondition2
EndCondition1

You cannot have two Else conditions within one Begin and End condition. However, you can reuse an Else condition by selecting the condition within another Begin and End condition.

You cannot move or delete an action when the Begin condition is collapsed.

  1. On the form modeling bar, click Actions and click New.
    The New action dialog box is displayed.
  2. On the Type list, select Else condition.
  3. Change the default Name (ElseCondition1) to something meaningful.
  4. Optional. Enter a Description for the action.
  5. Click Add.

    The newly created action appears on the Actions list.

  6. Associate the action with the control to trigger this action. See Configure actions for form control events. Alternatively, to call this action for a form event, associate the action with the form. See Associate an action with a form.