Skip to main content
Inspiring
May 7, 2016
Question

Drag and drop: Execute advanced action when source is refused

  • May 7, 2016
  • 2 replies
  • 409 views

Captivate 9

In a drag and drop interaction, you can easily execute an advanced action when a source is accepted by the target.

However, I would also like to execute an advanced action when a source is refused. That would be extremely helpful! Are there any tricks or do you know any solution?

Thanks a lot in advance!

    This topic has been closed for replies.

    2 replies

    Lilybiri
    Legend
    May 7, 2016

    You can only use an object action when the incorrect drag source can be accepted. D&D acts than like a real question slide where the user can indicate a wrong answer and get feedback (using Advanced Answer in MCQ).

    TLCMediaDesign
    Inspiring
    May 7, 2016

    What do you want to execute? If tries are set to one you can execute a failure action. If html5 you can execute an advanced action based on tries. We are currently working on a solution for this.

    Inspiring
    May 8, 2016

    Thanks for your answers!

    In fact, the following would also be sufficient for me:

    When a drag source is refused by the target, I would like to give a text caption (with an audio attached) which depends on the source that had been refused.

    Example: Lets say we have four drag sources and only one target. Moreover, let us assume that the sources No 1 and 2 are the correct answers and No 3 and 4 are wrong and are therefore refused by the target. If the user drops No 3, the source is refused and a text caption pops up saying "Your answer No 3 is wrong because...". In the same way, for No 4 ANOTHER text pops up (without using the SEND-Button) with the corresponding text for No 4.

    Is this possible? In the moment I`m only able to give THE SAME text caption for all refused sources (but not an individual one for each source).

    TLCMediaDesign
    Inspiring
    May 9, 2016

    That would take some serious JavaScript to determine which item was dropped and then display the applicable feedback. I haven't played with Drag and Drops enough to know if it's possible to determine the drop object with Captivate variables or not.

    If you have a tries limit of 1, you can then execute an advanced action to display your own feedback caption, you wouldn't be able to use the default failure caption.