The Decision Tool component allows you to embed an interactive decision-making flow on your page, guiding users through a series of questions to a relevant outcome or information.

Before you begin

Before adding the Decision Tool component to a page, you must first create the collection to group your questions into. This component references these pre-built content items.

Create a Decision Tool Collection

A Decision Tool Collection groups all the questions that belong to a specific decision tool. This is what the Decision Tool component on your page will reference.

To create a new Decision Tool Collection:

  1. Go to Structure > Taxonomy > Decision Tool Collection > Add term.
  2. Configure the following fields:
    • Name *: Give your collection a descriptive name
    • Title *:  Used as the title that sits above the progress bar (e.g., 'About your situation').
    • Description: This content will show on the page above the tool – note if added this will show through each step of the question flow
    • Before you Begin: This content will show on the page before we begin the flow section and will show as the default starting point of the flow
    • Begin text: This will be used for the button on the before you begin page
    • Step - Title *: This is the step title used for grouping the questions in to steps and shown on the front end
    • Step - Description: This content will show on the page under the step – note if added this will show for every question that is in that step
    • Logo: This will show on the confirmation page
    • URL: If populated this will be the link from the logo on the conformation page
  3. Save the Decision Tool Collection.

The taxonomy step title and description text are used within the tool – visual example below:

Screenshot for guide

Create Decision Tool Questions

Each question in your decision tool is a separate content item. You will link these questions together to form the decision flow.

To create a new Decision Tool Question:

  1. Go to Content > Add content > Question.
  2. Configure the following fields:
    • Collection *: Dropdown to group questions - created as taxonomy
    • Step *: Dropdown to group questions (e.g. About your task, About your situation) - created as taxonomy
    • Title *: Enter the text of the question that will be displayed to the user.
    • Question *: This is the question that will show on the site
    • Tool tip text: This is the text that shows on hover of a information icon that sits next to the question
    • Response Tracker *: Text summary used in the response tracker (RHS)
    • Answer Options *: Paragraph field for adding multiple answers
  3. Answer content:
    • Text  *: Text shown to the user as a selectable option
    • Next Question: Entity reference to the next question- note this field is the pulled from the question title field (/node/####) not the question for easier reference
    • Confirmation page: Entity reference to the final confirmation page
  4. Save the Decision Tool Question.
  5. Repeat this process for all questions required for your decision tool.

 


Create Decision Tool Confirmation page

The decision tool has a conformation page, this uses the basic page content type and is assigned the “Decision Tool Conformation” content category.

  1. Navigate to Content>Add Content>Basic Page
  2. Select the “Decision Tool Confirmation” option from the Content Category dropdown - only pages with this category will be able to be set as a confirmation page in the decision tool
  3. Complete the rest of the page creation as desired

 


How to add the Decision Tool component

  1. Navigate to the page where you want to add the Decision Tool.
  2. Scroll to the 'Layout' section of the page.
  3. Expand the appropriate section accordion (Middle Left Section, or Bottom Section) where you want to place the component.
  4. Click the Add component button within your chosen section.
  5. From the 'Add component' modal, select Decision Tool.
  6. Configure the fields as described in the next section.
  7. Click Add component to save the component to the page.
  8. Save the page to apply your changes.

Configuring the Decision Tool component fields

Fields marked * are required.

FieldWhat to enter / Notes
Collection *Select the Decision Tool Collection that contains all the questions and logic for this decision tool. You must have created this collection beforehand (see 'Set up your Decision Tool content first' alert).
Question *Select the initial Decision Tool Question that users will see when they first interact with the tool. This question must be part of the selected 'Collection'. You must have created this question beforehand (see 'Set up your Decision Tool content first' alert).
Hide progress indicatorToggle this to Yes if you want to hide the visual progress bar or indicator that shows the user how far they are through the decision tool. Leave as No to show it.
Hide response trackerToggle this to Yes if you want to hide the display of the user's previous answers or choices within the tool. Leave as No to show it.
Nest questionsToggle this to Yes if the decision tool should support nested questions, where answering one question can reveal a sub-question or a new path within the current question's context. Leave as No for a simpler, linear flow.

See it in action

View the Decision Tool demo page in the Rapid Start component library.