Skip to main content

Condition Elements in Interact: Create Dynamic Forms and Pages

Create complex and dynamic Torq Interactions with condition elements.

Updated over 2 weeks ago

The Condition element allows you to dynamically show or hide elements inside the same Interaction based on user responses. Use Conditions to build adaptive forms that present follow-up questions or information only when specific criteria are met.

How to use

Configure a Condition element

  1. Add at least one input element: A Condition must reference an existing user input element.

  2. Drag the Condition element: Add the Condition element beneath the input element it will reference.

  3. Name the Condition: Provide a clear, descriptive name.

  4. Select the referenced element: Choose the user input element from the dropdown menu.

  5. Define the condition logic:

    • Choose from Contains, Not Contains, or Filled.

    • Enter the relevant value if required.

  6. Set logical operators:

    • Use And to require all conditions to be met.

    • Use Or to allow any condition to trigger the follow-up.

  7. Add related elements: Drag display or user input elements inside the Condition block. These elements will only appear if the condition is met.

Important limitations

  • A Condition can only reference elements placed above it.

  • A Condition cannot reference elements placed beneath it.

  • You can create a secondary Condition beneath (but not inside) the first Condition.

  • Elements placed outside of a Condition will always be shown to all users.

When to use Condition vs. If/Switch

Use the Condition element when:

  • The logic is limited to the same Interaction.

  • Follow-up questions depend directly on inputs within that Interaction.

  • You want to keep everything inside a single page.

Use If/Switch or additional workflow operators when:

  • The logic depends on other workflow steps.

  • Multiple Interactions are required.

  • You want to keep each Interaction short and modular.

  • The flow branches significantly.

Example

The following example demonstrates a conditional follow-up question within a single Interaction. In this scenario, a user is asked which region was affected by an outage.

  1. Add a Single select element:

    • Question: “Which location was affected?”

    • Options: US, EU, CA.

  2. Add a Condition beneath the Single select.

  3. Configure the Condition:

    • Reference the Single Select element.

    • Select Contains.

    • Enter US as the value.

  4. Add related element(s): Drag a Boolean input inside the Condition block under the Related elements line.

    • You can add multiple display or user input elements under the same Related elements section.

    • All elements placed there will only appear if the condition is met.

Result:

  • All users see the location question.

  • Only users who select US will see the Boolean follow-up question.

  • Users who select EU or CA will not see it.

This allows you to dynamically tailor the Interaction experience based on user responses without requiring additional workflow steps.

Did this answer your question?