Skip to main content

Outline

This component is NOT recommended for use when creating accessible courses.

The Drag and Drop component lets you create draggable items and corresponding drop zone areas to receive them. The Drag and Drop component is suitable for building more complex test interactions.

This article provides an overview of the Drag and Drop component, component setup and behavior, and examples of Drag and Drop component configurations.

Component overview


The Drag and Drop component is an interactive question component that lets you create draggable items that the learner drops into specific drop zones. Learners can test their knowledge and receive immediate feedback. The Drag and Drop component can be part of an assessment or used as a separate component in your course.

The Drag and Drop component is fully responsive.

Component set up


To add this component, follow the steps in this article:

The Property Panel for the newly added component will then open automatically for you to customize set-up.

Or click anywhere on an existing component to open the Property Panel.


General section

Add Title, or a Display Title, as needed. The Display Title is seen by learners.

Add your Question. Use the text editor to style and format your text, as needed.

  1. Add Drag and Drop Instruction Text that tells users how to use the component.
  2. Include an Aria Label for screen readers, as needed.
  3. Add Aria Role Description for screen readers, as needed.

Interaction Label section

In the Interaction Label section, you can enable an Interaction Label.

The Interaction Label allows you to add a widget before or after the Drag and Drop component. This widget can display an icon and label prior to the Drag and Drop component completion, which changes to a different icon and label once the Drag and Drop component is completed.


Behavior section

In the Behavior section, update the number of Attempts the learner is allowed, as needed. The default setting is 1 attempt.

By default, Display Attempts Counter is enabled. Toggle to disable Display Attempts Counter.

Toggle to enable Auto Submit the Question.

Toggle Submit at any time to allow the learner to submit the question at any time.

Scroll down in the Behaviour section and toggle to enable Should drop zones reject incorrect items and to Randomize Items, as needed.

The final toggle in the Behaviour section is to enable Randomize Drop Zones.

Add Answers & Drop Zones


Drop Zone section

In the Drop Zones section, you Add Drop Zone items.

  1. Add Drop Zone Text that is the text that should appear on the drop zone. Use the text editor to style and format your text, as needed.
  2. Select a Drop Zone Background Image. The image will display inside the Drop Zone. Add Drop Zone Background ARIA Label, as needed.
  3. Toggle to enable Should Background Image Cover Drop Zone. Allowing this will set the Drop Zone Background Image to cover the entire Drop Zone area.
  4. Set a Drop Zone ARIA Label for screen readers, as needed.

Add, duplicate, or delete Drop Zone items as needed.


Answers section

In the Answers section, you add Answer items to your Drag and Drop component and choose the correct drop zone for each Answer item.

  1. Add Item Text that will display as the draggable item text.
  2. Select Correct drop zones that the Answer item belongs to.
  3. Select an Item Image, as needed. The Item Image will display inside the draggable item.
  4. Enter Item Image Alt Text, as needed.

Add, duplicate, or delete Answers items as needed.

Component Examples


The Drag and Drop component gives you a lot of flexibility. Below are examples that illustrate different Drag and Drop component setups:

Example 1 – displays a Drag and Drop component set up with two Drop Zones and two Answer Items. The Drop Zones display Background Images and the setting to cover the entire drop zone.

Example 2 – displays a Drag and Drop component configured to display Compact Drop Zones with horizontal layout, with Background Images.

Appearance


  1. In the Appearance section, you select the Drop Zone Layout. By default, this is set to Drop zones bottom.
  2. Toggle to Show Answers as Grid.
  3. Enable Display Drop Zone Pointer to display a pointer icon inside each drop zone that indicates to the learner that the item should be dropped there.
  4. Toggle to enable Compact Drop Zones. Enabling this removes the default drop zone height.
  5. Finally, in the Appearance section, toggle to enable Drop Zone Horizontal Layout.

Feedback


The Feedback section lets you tailor feedback for correct, partly correct, or incorrect Drag and drops. Feedback can be displayed on the page, beneath the component or in a notification pop-up.

For each type of feedback, you can choose to include:

  • global feedback set up.
  • custom text as feedback. You can use the text editor to style and format your text as needed.
  • custom imagery as feedback.
  • a link to a specific part of your course; if, for example, learners should revisit a particular section.
  • a feedback style that overrides the theme styles settings.

Did this article help?

Let us know by leaving a star rating or review at the top of this article.