Skip to main content

Conditional Logic

Our Conditional Logic feature allows you to create If > Then rules to show or hide entire tasks and any content controls within your tasks.

You can use these rules to create truly dynamic workflows that are responsive to the input provided by the user.

Example Use Cases

  • You have an Employee Onboarding process. You have some tasks that are only applicable to IT employees and other tasks that are only applicable to Marketing. You could hide the department specific tasks by default and set up a rule to show the relevant tasks when the Department drop down control value is changed.
  • You have a Customer Setup process. You have a multi-select control listing the products the customer has purchased. When the "Web Hosting" product is selected a drop down control can be shown within the same task that asks for a "Tier" to be selected.

Triggers & Actions (If > Then)

Conditional logic rules are comprised of two parts. The trigger (If) and the action (Then).

The trigger is what causes the rule to run. Triggers can be bound to the values entered in to the following content controls:

  • Drop Down
  • Multi Choice
  • Short Text
  • Long Text
  • Website
  • Email
  • Date
  • Members

The Members control is worth singling out. As well as testing against a particular User or Group, it can test against Current User — the person running the checklist, resolved at that moment rather than fixed when you build the rule. That lets one rule behave differently for each person who opens the same checklist: showing a task only to the user selected in a Members control, for instance, without naming anyone in the rule itself.

The action is what happens when the rule is run. The actions possible are to show or hide one or more tasks, headings and/or content controls within your checklist.

Setting Up Conditional Logic

Conditional Logic rules are created in your Template.

We recommend that you build as much of your process as possible before creating any Conditional Logic rules. At a minimum you will need to create the trigger control and the elements (tasks, headings and content controls) you want to show or hide.

The two key parts to Conditional Logic are the initial visibility and the rules that determine when the visibility should be changed. Both of these are controlled from the 'Conditions' popup, which is discussed in further detail below.

Creating Conditional Logic Rules

Open your template and select the task containing the control that the rule will be triggered from.

Click on the 'Conditional Logic' button located at the top of task content area to open the 'Conditions' popup for the selected task.

Conditional Logic Button

Use the multi choice control labelled 'Tasks & Controls Hidden By Default...' to select the tasks, headings and content controls that you would like to be hidden when your checklist is initially created.

Click the 'Add New Condition' button to create a new conditional logic rule.

For each new rule you create you will need to specify the trigger (If) and the action (Then).

For the Trigger (If): Select the field that you want to trigger off, then select the condition and finally the value.

For the Action (Then): Select the effect (show or hide) and then select the tasks, headings and content controls that are affected.

Create your rules using the 'Conditions' popup form

Reverse Logic

In most scenarios you will need to create a second rule to reverse your logic.

For example: If you are showing a task based on the selected value of a drop down control you will also need to create a second rule to hide the task when the drop down value is not selected.

Controls Linked to a Data Set

Conditional logic works on Drop-Down and Multi-Choice controls that are linked to a Data Set exactly as it does on controls with a hand-typed list.

When you build a rule, the value list is filled from the linked View's records — using the field the control displays, sorted alphabetically so a long list stays manageable.

Rules are stored against the record rather than the text on screen, so a rule keeps working if the record is later renamed, or if the link is changed to display a different field.

note

If the linked Data Set or View has been deleted, the value list will be empty. The Template Designer shows a warning banner explaining which links need attention.

Conditional Logic In Action

In the example we have been working with we have used the scenario of an Employee Onboarding checklist. We have set up some rules to show and hide specific tasks and controls depending on the value entered in the 'Department' drop down control.

As you can see below, when the 'IT' department is selected a second drop down is shown prompting the user to select an 'IT Function'. In addition, the task 'Create IT specific accounts' is shown.

When we select 'Marketing' the previous task and the 'IT Function' drop down is hidden and the task 'Create Marketing specific accounts' is shown.

When we select 'HR' both of the department specific tasks are hidden.

Create your rules using the 'Conditions' popup form