What are Conditional Workflows?
Conditional Workflows (aka Dispatches) are a method of routing an interactive request to specific teams depending on a selection a member makes when filling out a form.
Dispatches works in combination with the data input type “choose one from a dropdown” and Workflows.
What are some scenarios for Dispatches?
- A single request form can be routed to Maintenance, Janitorial, Parking, Reception, or Security teams depending on the type of service requested.
- An information request form can be routed to the team that can best answer it.
- An event registration that can be virtual or in-person can be routed so that administrators know whether to provide a virtual link or reserve a seat.
How do Dispatches work?
Dispatches are configured based on making a selection from a dropdown list which results in corresponding workflows.
Using the first example above, let's say we have a single Request form that can go to three different teams depending on the situation:
- If something is broken, the Maintenance team needs to be alerted.
- If something needs cleaning, the Sanitation team needs to be alerted.
- If someone feels unsafe, the Security team needs to be alerted.
Depending on the choice selected, we can configure a different message to go to one of the three Teams. The alternative is to create three different forms, or for the message to go to a central administrator for delegation.
How to create Dispatches
1. Create a dropdown list
When creating a Post or a Page, make it interactive and go to the Data tab:
Click on the blue plus sign next to Data Fields to add a new data input, and select Choose one for a dropdown as the input type.
Enter the dropdown options as needed. In this case we have entered the names of the different teams that may need to be contacted.
Save the data input and return to the Appearance tab. Add the custom field to the layout:
Now go to the Workflows tab:
Click on the blue plus sign to create a new workflow, then click on the Edit button:
Expand the arrow next to Data Validation Rules to reveal the Add Draft Validation Rule button:
Click on Add Draft Validation Rule and configure the options for the first option of the dropdown list (in this example, Maintenance):
Data Field: Type of request is type: Dropdown. If there are more than one dropdown data inputs in the for, choose the one that determines the workflow.
Operator: Value Equals
Value: Select the first option on the list, in this case Maintenance. We will configure the other options in other workflows.
Click on Create.
Now configure the message to send when the member selects option 1. In this case, we want to send an email to the Maintenance team with the details submitted in the interactive form.
Click on Done and create two more workflows and corresponding Data Validation Rules for the other two options:
Note each Workflow has a label indicating there is a Data Validation Rule in effect.
- You can select different notification methods, or multiple notification methods to alert the teams.
- You can create multiple data validation rules that trigger one workflow, say choosing either Maintenance or Sanitation triggers the workflow that notifies a combined team.
Note: in-app notifications may sometimes be missed or overlooked. Email is more a permanent record.
Save, Target, and Publish the Page or Post.
When a member makes a selection from the dropdown list, data validation rules dictate which workflow to follow.
If you have any questions about dispatches and data validation rules, contact the Help Center at email@example.com and we will be happy to help.