Skip to content

Manage Conditional Rules

This page outlines how one can manage conditional rules for Factorial Forms. Conditional rules allow the user to govern the visibility of UI elements (pages, sections or fields) of a form based on the values of different fields or other predicates. Once a display rule has been defined, it can be assigned to a UI element while it's being newly created or from its respective properties page.

The Conditions page (displayed in the screenshot below) lists all of the UI rules that have been defined by the user and can be accessed from form management page.

Alt text

Add a New Rule

A new display rule can be added as follows.

  1. Click on the + Add Rule button to start creating a new rule.
  2. In the drawer panel, provide a suitable rule name and click on the + Add button to choose from the following options

    Alt text

    1. Rule: Add a single rule that governs the form UI based on the value of a particular field
    2. Rule Group: Add a rule group that governs the UI visibility based on the predicate resultant from the values of multiple fields
    3. Form Rule: Choose UI visibility based on three conditions, namely, whether all pages have been visited, all pages were valid or all pages except for the current page are valid.

    Alt text ^6f7f29 3. Once the right combination of predicates have been configured as the display rule, click on the Save button to save the rule, else, click Cancel to discard everything and exit the panel without saving.

Edit an existing rule

Edit an existing rule as follows.

  1. Select the rule by clicking on the radio button next to it.

Alt text 2. Next, click on the Edit Rule button at the upper-right panel. In the drawer panel that opens, make appropriate changes to the rules as needed. 3. Click on the Save button to save the changes, else click Cancel to discard the changes.

Delete an existing rule

Follow the below steps to delete an existing rule.

  1. Select the rule to be deleted by clicking on the radio button next to it.
  2. Click on the Delete button in the upper-right panel.
  3. In the dialog box that opens up asking for confirmation, click on the Delete button to confirm and proceed with deletion, else click Close to exit without deleting.

Alt text