Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Drag and Drop

Updated on January 14, 2022

A Drag and Drop interactive content type has a set of draggable elements (image or text) that you drag to response targets (drop zones). A Drag and Drop interaction enables the learner to associate two or more elements and to make logical connections visually. Drag and Drop questions support one-to-one, one-to-many, many-to-one, and many-to-many relationships between questions and answers.

Attention: In the text section that precedes the H5P interaction section, add the following lead-in instruction: Check your knowledge with the following interaction:
Tip: As a best practice, use a Drag the Word interaction in place of a text-based 1:1 Drag and Drop interaction.  Drag the word allows for proper localization of content.

Title

Enter a title that briefly describes the purpose of the drag and drop interaction. For example, System of Record drag and drop.

Step 1: Settings

Background image

Always use a background image on which you overlay drop zones and draggable elements.

In the Background image section, click Add to add a background image.

Note: You must have the image available for upload. There is not a library of previously used images available in the H5P Drag and Drop editor.

Task size

The Task size parameters define the width and height of the editor as well as the aspect ratio of the Drag and Drop interaction, rather than the actual size in pixels when it is viewed.

Use a 16:9 aspect ratio. Use 768 x 432 pixels as the maximum Task size settings.

Step 2: Task

Task

The Task area is where you add drop zones and draggable elements (text boxes and images). Drop zones are target areas onto which text and image-based draggable elements can be dropped.

Use images and simple text statements as draggables. It is easier for learners to associate objects with a definition.

Do thisAvoid this
Drag and Drop best practice - do this
Drag and Drop best practice - avoid this

Start by adding the instructions for the user.

Adding queueing instructions

To add user guidance:

  1. To add a text box, click the Text icon.
  2. In the text field, enter the instructional text to display to learners. 
    Note: For example, Drag the data type description on the left to the blank rectangle next to the appropriate sourcing option.
  3. Click Done.
Note: If the queueing instructions include a lengthy scenario, place it in the section above, outside the interaction with the following text:

Read the scenario to complete the following interaction.

Scenario: [add your scenario]

Next, place the drop zones.

Adding drop zones

  1. Click the Add Drop Zone icon.
  2. In the Label field, enter a name to describe the purpose of the drop zone.
    Important: Name the drop zones as meaningfully as possible. The name of the drop zone is displayed in the draggable elements' properties. A meaningful drop zone name makes it easier to identify the correct drop zone for the draggable element.
  3. Under Select correct elements, select the correct draggable element that belongs to the drop zone.
  4. If there is only one correct draggable element for the drop zone, select the This drop zone can only contain one element check box.
  5. If the drop can contain more than one draggable element, select the Enable Auto-Align check box.
  6. Click Done to return to the Task editor.

To move a drop zone, in the Task editor, click and drag a drop zone to move it to the desired location.

To adjust the drop zone dimensions, in the Task editor, select the drop zone, and then grab a handle to adjust the drop zone dimensions.

To change the label or behavior of the drop zone, select the drop zone, then click the Pencil (Edit) icon.

Adding text-based draggable elements

Note: Keep text-based draggables to short, one-line answers. If you must include a longer scenario, make that text the drop zone, or place the text next to the drop zone so that learners can see the content.
  1. To add a text box as a draggable element, click the Text icon.
  2. In the Text field, enter the text to display.
  3. Under Select drop zones, click Select all to select the drop zones to which the text-based draggable element can be targeted.
    Note: Selecting only one drop zone highlights the corresponding drop zone for the draggable element, which gives away the correct response.
  4. Set the Background Opacity to between 50% and 75%. This setting helps the user distinguish the text-based draggable element from other plain text boxes.
  5. Click Done.
If you want to create a text element to display static content (for example, to provide a scenario or instructions) do NOT select any drop zones. Selecting, and then clearing, a drop zone causes the text element to be scored. You must remove the text element from the task pane, and then add a new text element.

Adding image-based draggable elements

  1. To add an image as a draggable element, click the Image icon.
  2. Click Add to browse for and select the image.
  3. In the Alternative text field, enter the text to display if the image cannot be loaded in the browser.
  4. Under Select drop zones, select the drop zones to which the image-based draggable element is targeted.
  5. Click Done.

Configuring the correct drop zone options

Note: Do not select all, otherwise, doing so includes the instructive guidance in the drag and drop scoring.
  1. Double click a drop zone.
  2. Under Select correct elements, select the check box next to the correct answers. 
  3. Click Done.
  4. Repeat steps 1-3 for each drop zone.

Behavioral settings

Use behavioral settings to define how the Drag and Drop interaction should be scored.

  • Enable "Retry": Select this option to allow the learner to try the interaction multiple times.
  • Require user input before the solution can be viewed: Select this option to ensure the learner attempts at least one match in the interaction before they can check their answer(s).
  • Give one point for the whole task: Select this option if you want the Drag and Drop interaction to be scored with a single point for the correct responses.
  • Apply penalties: Do not use this option. This option can be confusing to learners as it subtracts one point for each incorrect answer. For example, if the drag and drop interaction has four choices, and the learner gets two correct and two incorrect, their total points would be zero (2 correct points - 2 incorrect points = 0 points).
  • Enable score explanation: Do not use this option.
  • Show score points: Select this option to show the total number of points earned for each answer.
  • Show Title: Clear this option to hide the labeling for the drag and drop interaction.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us