Introduction to Drag-and-Drop interactions

Drag-and-drop interactions in Adobe Captivate test the users if they can match related items from a group of items.

Assets and samples

The procedures in this document require you to use assets such as images and sample Adobe Captivate project files. You can choose to use your own assets and samples. However, it is recommended that you download and extract the following zip file to your computer:

drag-drop-interactions.zip

Create your first drag-and-drop interaction

Let’s create a basic drag-and-drop interaction on how to match countries with their capital cities. 

  1. Open a blank project.

  2. Add a Blank Slide from the Slides menu in the toolbar.

  3. Add the images of the monuments and countries from the zip file given, to the slide. Check the picture below.

  4. From the Insert menu, launch the Drag and Drop Interaction wizard.

  5. In the first step of the wizard, set the monuments as the drag sources. To select the monuments simultaneously, press CTRL and click them. Click Next.

  6. In the second step of the wizard, set the countries as the drop targets. To select the countries simultaneously, press CTRL and click them. Click Next.

  7. In the third step, map the monuments with their respective countries. Drag the handle at the center of the drag source and drop it on the respective drop target. Click Finish to close out the wizard.

  8. During the last step of the wizard, two text captions appear on the stage-Type success text here, and Type failure text here. Now, click into these captions to edit the feedback messages which the user gets on either passing or failing the assessment. You can also customize the properties of the text, such as color, size, alignment, and font style.

    Submit button also appears on the slide in the last step of the wizard. So, the user has to click Submit to complete the task given to them.

  9. You can give more than one attempt to the user. Go to Properties Inspector, Drag and Drop tab, Actions section, and change the No.of Attempts to 3.

    When you choose this option, you can also reset the interaction done by the user before the next attempt. In the same Actions Section, select Reset All under Reset.

  10. You can alternatively let the users work their way through in a more interactive way instead of them submit the answers.

    1. Select the drop target. Go to the Properties InspectorDrag and Drop tab, Format  section, and click the Objects Actions button. 
    2. The Accepted Drag Sources dialog box opens.
    3. Deselect Accept All, set the number of attempts by editing Count. Now check the acceptable drag source for the chosen drop target. Similarly set the acceptable drag sources for the other drop targets.
  11. To see the drag-and-drop interaction in action, click Preview.

Customize the drag-and-drop interaction

Applying effects to drag sources and drop targets

You can create visual effects while dropping the drag source to the drop target. For the same, select the drag sources, go to the Properties Inspector, Drag and Drop tab, Format  section and select either Zoom In or Glow option.

Similarly, you can also set Zoom In effect for the drop target.

Set a display message

You can display optional messages for the correct and wrong matching done, or give the user a hint.

Select the drop target, go to the Properties Inspector, Drag and Drop tab, and under Display, check the On Accept option. The text caption for success appears on the slide. You can set the success message.

Similarly you can check the On Reject option, or Hint  option and set the appropriate message.

Using the Interactions Properties

You can choose to send the drag source to its original position if the user accidentally moves it. You can also let the user redrag it if they don't drop it at the correct point. Use the Interactions Properties in the Options panel under the Drag and Drop tab to achieve these actions.

Create a responsive drag-and-drop interaction

  1. Open a responsive project.

  2. Insert two vertical Fluid Boxes from the toolbar. 

  3. Insert three horizontal Fluid Boxes in the top row and in the bottom row. 

  4. As in the previous section, add the images of monuments and countries from the zip file given, to the slide.

  5. Adjust the Fluid Boxes to fit them around the individual images.

  6. Move the Preview Slider across to see how the images appear on different form factors. For example, the below image shows how they appear on an iPad.

  7. Launch the Drag and Drop Interaction wizard. 

  8. Set the drag sources, drop targets, and map them like in the previous section. Also edit the success and failure feedback text captions.

  9. Preview the project.

Use Types in a drag-and-drop interaction

You can also use drag-and-drop interactions to let the users group similar items from a collection of items. This task is achieved by using the option Types. As an example, let's create a project to separate fruits and vegetables from their mix.

  1. Open a blank project.

  2. Add a Blank Slide from the Slides menu in the toolbar.

  3. Add the images of fruits and vegetables from the zip file given, to the slide.

  4. Launch the Drag and Drop interaction wizard.

  5. In the first step, set all the fruits and vegetable items as drag sources. While doing it, classify them into separate groups using Types. You can accomplish this task in two phases as follows:

    1. Select all the fruit items simultaneously. To name this group as Fruits, click the + symbol against the Add To Type option on the wizard toolbar.
    2. Similarly, select all the individual vegetable items simultaneously and create a Type named Vegetables.

    Click Next.

  6. Select the baskets as the drop targets. Click Next.

  7. Drag the handle at the center of one of the fruit items and point it to the Fruits basket. While dragging the item, all the other fruit items also automatically point to the Fruits basket. Similarly, when you map a vegetable item to the Veggies basket, all the other vegetable items also map to the basket. Click Finish.

  8. Set the success and failure messages. Also, add a text caption and name it as You can have 3 attempts

  9. You can give more than one attempt to the user. Go to Properties Inspector, Drag and Drop tab, Actions section, and change the No.of Attempts to 3.

    When you choose this option, you can also reset the interaction done by the user before the next attempt. In the same Actions Section, select Reset All under Reset.

  10. To see the Interaction in action, Click Preview.

Include drag-and-drop interaction in an Adobe Captivate quiz

Drag-and-drop interaction can be included in an Adobe Captivate Quiz so that along with the regular quiz questions, your drag-and-drop interaction can also be graded.

Let's add the drag-and-drop interaction given in the first section of this article to a quiz.

  1. Open a blank project.

    Name the title as Start the Quiz. 

    Also, add a button which has the start symbol, from the Shapes menu in the toolbar, to the slide. Go to the Properties Inspector, Properties tab, Actions section and set On Success as Go to the next slide.

  2. To create a simple drag-and-drop interaction, follow the steps 3-8 in the section: Create your first drag-and-drop interaction

  3. Select the drag-and-drop slide in the Filmstrip. Go to the Properties Inspector, Drag and Drop tab, Actions section, and under Reporting, check Insert in Quiz. You can see that Add to Total is checked automatically once Insert in Quiz is checked.

    You can also collect the answers given by the user in a session, and send them to an LMS to publish it in a report. For this option, Under Reporting,  check Report Answers.

  4. To show the score to the users after they submit the answers:

    1. Go to the Quiz menu on the menu bar and choose Quiz Preferences.
    2. The Quiz Preferences dialog box opens. In the dialog box, in the Categories pane, under Quiz, select Settings.
    3. Check Show Score at the End of the Quiz. A Quiz Results slide will be added after the drag-and-drop interaction slide.

  5. Remove the feedback text captions from the drag-and-drop slide.

  6. To see the quiz in action, preview the project.

 Adobe

Получайте помощь быстрее и проще

Новый пользователь?

Adobe MAX 2024

Adobe MAX
— творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX

Творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX 2024

Adobe MAX
— творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн

Adobe MAX

Творческая конференция

С 14 по 16 октября очно в Майами-Бич и онлайн