Drag and Drop individual feedback!

john-b Community Member Posts: 18

I have created ONE drag and drop question with 10 drag items and 10 drop areas. Each drag item will match a drop area.

When all drag items are placed in a drop area the user will have to click a 'Submit' button. Once clicked I want a tick or X to display next to each drop area to show if the correct drag item has been used.

How would I do this, or does anyone have a work around?



  • wendymiller
    wendymiller Community Member Posts: 244
    Hi John B,

    The key to the individual feedback for a drag and drop question is to query what the question variable contains. Pairs of numbers are created in the question variable as the learner drops items onto the hotspots. So a correct answer for a drag and drop question variable with 3 drag and drop pairs would contain 1-1,2-2,3-3. Run the page containing the drag and drop question in Debug mode and watch what happens to the Question variable value in the Debug window as you drag items onto the hotspots to see what I mean.

    I am attaching a small demo of a drag and drop question with 3 drag and drop pairs. The Feedback for the question is set to Issue Feedback: On Process Question. And then an action group runs for both Correct and Incorrect answers. The actions in the action group decide whether to display an X or a Check next to each item. Each action in the action group checks to see if Question_0001 contains 1-1, or 2-2, or 3-3. If it does contain any of those strings, then a Check will show next to that item. If it does not contain the string, then an X will show next to the item.

    The attached example was created in the desktop version of Lectora v11. If you need a different format, please let me know and I will post it. I hope this helps.

  • john-b
    john-b Community Member Posts: 18
    Hi Wendy,

    Thanks for the help this worked perfectly.
  • rabano9900
    rabano9900 Community Member Posts: 7
    Hi guys,

    So I was trying to do something similar to Wendy's sample, but what I was hoping to do was process the feedback once a drag item is placed on a drop zone.

    So if I had 3 pairs and when I do 1-1, for instance, I get the correct answer. But when I do 1-2 or 1-3, I get the incorrect answer. Also, when I get 1-1, 2-2, and 3-3, I would show feedback that I got all of them correctly. Been trying this for the past day and I could think of 2 approaches:

    1) One drag and drop quiz with all 3 pairs, perform actions similar to wendy's sample, or

    2) One drag and drop quiz for each pair

    What would be the better approach?


  • kraven7771
    kraven7771 Community Member Posts: 50
    hi, is there an lectora online example that's available?

    I'm trying to figure out how to do this as well.
  • kvenick
    kvenick Community Member Posts: 21
    Your approach doesn't seem to work in Lectora Online. Is there some other functionality for the online version?
  • timk
    timk Community Member Posts: 1,207 ♦ Idol ♦
    Showing individual feedback for each drag item can easily be done with an On: Click action for each item.
  • timk
    timk Community Member Posts: 1,207 ♦ Idol ♦
    The forum prevents me from uploading .pkg file "for security reasons."
  • klaatu
    klaatu Community Member Posts: 988
    Not sure if this will work but try to change the extension before zipping it. Leave a readme in the archive explaining what to change back.