Add a Condition action

Use a Condition action to define conditions related to an event firing. At runtime, the event is only fired if the condition is satisfied.

For example, if a loan can only be given to a customer whose earnings are equal to or more than 20,000 $, you can create a condition action on the online loan form. If the salary = $ 20000 OR salary > $ 20000, the user is directed to another form where other credit liabilities are declared to process the loan request.

A Condition action must include a Begin condition, a regular action, such as Redirect, and an End condition. You can automatically add an Else and/or End condition when creating a Begin Condition action to speed up the process.

For example, to create a Condition action with a Redirect action within it, perform the following steps:

  1. Create a Begin Condition action.

  2. Create a Redirect action.

  3. Create an End Condition action.

  4. Save and deploy the site. At runtime, the action is executed only if the condition specified for firing the action is satisfied.

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

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

BeginCondition1
Clear1
BeginCondition2
	Clear2
EndCondition2
EndCondition1

You can expand or collapse a condition to show or hide the actions within it. By default, a condition is expanded.

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

  1. On the Form Modeling bar, click Actions.
  2. On the Actions page, click Add Generic Add.
  3. On the Type list, select Begin Condition.
  4. Enter a Name and Description for the action.
  5. Optionally, configure a unique action for each language separately. See Configure multilingual actions for a form or control for more information.
  6. To automatically add an Else condition, click Yes for Add Else Condition .
    A box with the name provided for the Begin Condition appended with Else, such as BeginCondition1Else appears.
  7. By default, Add End Condition is set to Yes (which means the End condition is automatically added to the Begin condition) and the box with name provided for the Begin Condition appended with End is displayed. To add an End Condition action manually, click No for Add End Condition and add the End Condition action.
  8. Enter a Begin condition by consuming one of the following in the Value box:
    • Global Variables

    • Form Variables

    • Form Fields

    Note You can reuse the Begin condition by copying and pasting it in another Begin condition.
  9. Click OK.

    The newly created action is added to the table.

  10. Click Save.
    When the action is saved, the Else and/or End condition actions are also generated with the provided names. A message appears if there is a duplicate condition.
  11. Associate the action with the control to trigger this action. To call the condition action upon form load, associate the action with the form. See Associate an action with a form or control.
  12. To configure an End Condition action:
    1. On the Actions page, click Add Generic Add.
    2. On the Type list, select End Condition.
    3. Enter a Name and Description for the action.
    4. You can configure a unique action for each language separately. See Configure multi-lingual actions for a form or control
    5. Click OK.