Skip to main content

6. Configure Forms with Conditional Logic

Conditions are the key to creating form sequences that respond to a user's choices. They allow us to determine exactly what path a user follows as they answer the questions we've added to our various forms.

In this walkthrough, we add several form-related action blocks and leverage the available conditional logic on those actions to effectively move users through our form sequence. At the end of each sequence, we add another action to triage the request.

Est. time to complete: 8 minutes

Prerequisites

  • An Ask a Question action block with a button configured to "Open a form"

  • An update form with a dropdown field and two subsequent update forms

Complete 5. Create and Customize Forms before starting this walkthrough.

Video Walkthrough

Follow Along

Customize HR Form Flow (2:03 - 4:45)

Then, we customize the workflow for when the user indicates they have an HR-related request:

  1. Locate the Submit a Ticket button block and select the add block button, add_block.png, directly after it. A new When Form Answered block appears.

  2. Select the newly-created When Form Answered block. The When Form Answered panel displays.

  3. In the Action Type field, select Open a form. The Choose form field displays below.

  4. Select the Choose form dropdown and select the HR Question form.

  5. On the When Form Answered action block, select the Conditions button, conditions.png. The Conditions panel displays.

  6. Select the Search data field dropdown (first condition field) and select What do you need help with?.

  7. Select the Enter value field (second condition field) and select HR Request. The Condition button is shaded on the Legal selected action block, indicating the condition has been successfully added to the action.

  8. Select the edit icon, blue_edit_pencil.png, beside the action title and rename the action to "HR selected".

  9. Select the When Form Answered action block that follows the Legal selected block. The When Form Answered panel displays.

  10. Confirm that the Action Type field is set to Continue a flow, then select the add block button, add_block.png, after the When Form Answered block. A new Action Block block is created and the Action Block panel displays.

  11. In the Workflow section of the Action Block panel, select Update Field. The Update Field panel displays.

  12. Select the Field Name dropdown and select Due Date, then set the Value field to 3 (Days from Trigger Match).

  13. Select + Add field to update. A new pair of Field Name and Value fields display.

  14. Select the Field Name dropdown and select Title, then, in the Value field, select the insert field button, insert_field.png. Select the following fields one by one to concatenate them into a single string: What do you need help with?, "-", Creator Name, "=", Creator Email.

    The Value field should read as follows, where the square brackets indicate a selected field: "[What do you need help with?] - [Creator Name] - [Creator Email]"

  15. Select the edit icon, blue_edit_pencil.png, beside the action title and rename the action to "Update due date + legal".

You've now added actions and conditions that instruct Tonkean to follow either one flow or the other, depending on whether the user indicates they have a legal request or HR request. Additionally, you've added actions to either assign yourself as the owner of the item if it's a legal request or update the item's Title field if it's an HR request.

Next, we'll explore statuses in Tonkean and use them to monitor the email requests coming into our email inbox.

Next Step