Explore the community Forums Lectora Online Lectora Online Questions & Answers Drag & Drop prevent multiple drops pop-up message

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #405256 Score: 0
    Profile photo of Christina Metzler
    Christina Metzler
    Member
    beginner
    intermediate
    contributor
    curious george
    friend finder
    wise owl
    profile
    Group Member
    2 pts
    @cmetzler2560

    Hello! Is there a way to prevent the default pop-up message that appears when a user tries to drag multiple times on one drop site? The pop-up message says, “The drag item limit for this question is 1 in each drop zone. Remove an item to change entries.”

    #405425 Score: 1
    Profile photo of Robert Aung-Naing
    Robert Aung-Naing
    Member
    beginner
    intermediate
    friend finder
    profile
    wise owl
    contributor
    12 pts
    @raungnaing

    Hi Christina,

    I assume you have “Max Drops per zone” set to 1 and don’t want the popup message. One way you can do this is to use HTML Extension to override the default functionality. Add an HTML Extension of type “Header Scripting” with this line:

    reachedMaxDrops = function() {}

    You can have it on the page where you have the DD question or higher level such as chapter, title.

    With this HTML Ext., you are overriding the default function (reachedMaxDrops) with one that does nothing.

    Robert.

    This post has received 1 vote up.
    #405427 Score: 0
    Profile photo of Christina Metzler
    Christina Metzler
    Member
    beginner
    intermediate
    contributor
    curious george
    friend finder
    wise owl
    profile
    Group Member
    2 pts
    @cmetzler2560

    Thank you Robert!

    #406111 Score: 0
    Profile photo of Daryl Fleary
    Daryl Fleary
    Member
    beginner
    intermediate
    advanced
    friend finder
    LUC16
    LUC16 Attendee
    contributor
    wise owl
    verified member
    17 pts
    @dfleary

    Christina:

    FYI, you can also change the message by going to File ribbon > Preferences > Publish Strings and scroll to the bottom of the list.

    However, I’m curious why you want to disable the message entirely. You just want the item to “not stick” but don’t want to tell the learner why? IMO, I think that would be confusing to learners, particularly if the number of allowable drag items varies for different questions.

    Daryl

     

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.