Skip to main content
Inspiring
October 10, 2017
Answered

Drag and Drop - is there a way to listen for when all drag items have been accepted?

  • October 10, 2017
  • 1 reply
  • 286 views

Hello,

Our customer wants the continue button that takes the user to the next slide to appear only when all four drag items have been dropped in one of the drop fields.  Is there a way to "listen" for this?

Thanks for any help!

Ryan

    This topic has been closed for replies.
    Correct answer Lilybiri

    Use the object actions. You don't specify if the D&D is validated or not? If you provide the Reset button?

    1 reply

    Lilybiri
    LilybiriCorrect answer
    Legend
    October 10, 2017

    Use the object actions. You don't specify if the D&D is validated or not? If you provide the Reset button?

    Inspiring
    October 10, 2017

    Ok. It looks like with Object Actions, I can set a variable to true when that drop field accepts an answer and then check if all of the drop fields have accepted an answer to show the continue button....  Am I on the right track? 

    RodWard
    Community Expert
    Community Expert
    October 10, 2017

    Yes you are on the right track. Use the Object Actions to set the variables to 1 (or True).  But unless you are setting these variables via the Object Actions being Conditional Advanced Actions that also then check if ALL variables are now set to true, you would still need another Event to trigger the Conditional Action that then performs the final check.

    You could use the Submit button's Success or Last Attempt events to do this.  But Drag and Drop Slides also have an option to have the interaction Auto Submit if all drag objects are dropped on their relevant correct targets.  So that's another way to trigger the final Conditional Action.