Skip to main content
elearningbuilder11
Inspiring
November 21, 2017
Answered

Drag and Drop not working correctly... help?

  • November 21, 2017
  • 2 replies
  • 1965 views

Hello.

I am trying to have CP2017 (on a MAC) run an advanced action 'On Failure'

Heres what it looks like:

They will DRAG the correct text from the left... onto the white boxed area on the right.

If they get the wrongs answers, I want the 'On Failure' action to run. (shown below)

Here's the advanced action:

Why doesnt this work?

Thank you in advance.

This topic has been closed for replies.
Correct answer RodWard

Hmm... Ok I dont want to bother you too late..

Is there another way we could do this without them having to reload the slide each time.. Our users tend to be on the lower end of technology familiarity?  They will most likely become frustrated if they have to load the slide for each attempt.


There is another way to set up a drat and drop interaction so that it will display messages to the user each time they do it incorrectly.  But it's somewhat complex to set up, and if you are a newbie Captivate developer, you might find it beyond your abilities.  It involves getting your hands dirty with Variables and Conditional Advanced Actions

The trick is that you make use of what are referred to as Object Actions.  If you select a Drop Target object and look on the Drag and Drop tab under Format, you will see the Object Actions button.  This opens a dialog that allows you to specify Actions that will be performed when each of the Drag Objects in the interaction are dropped on that specific Drop Target object. 

This makes it possible to assign values to User Variables that you set up which will then track whether or not the correct object was dropped on its relevant target.  So as the user completes the drag and drop interaction, they are at the same time setting values of variables that are evaluated by a Conditional Advanced Action which will show the relevant failure message if not all drop objects are on their correct targets.

You need to hide the default Submit button and select the option for Auto Submit Correct Answers so that if the user drops everything in their correct positions then the Success action is automatically fired without them needing to click any button.  (I also recommend you turn on the Reset button so that the user can reset the drag objects to their original positions for each new attempt.)

Add a Smart Shape button to the slide to replace the Drag and Drop default submit button.  This button will execute the Conditional Advanced Action that evaluates all the variables tracking the positions of the drag objects.

If all of this sounds beyond you, don't feel bad.  Captivate's more advanced features take some time to get your head around.  I just wanted to let you see that there ARE other ways to get the result you wanted.

2 replies

elearningbuilder11
Inspiring
November 22, 2017

Hello,

Got it to work. Not 'exactly' they way I wanted but close enough. Thanks for all your help.

Just one last question on this... Is there any way to control the length of time that the success and failure popups are displayed?

elearningbuilder11
Inspiring
November 22, 2017

Found it

Click the object, go to the timing tab.. there it is right at the top

Lilybiri
Legend
November 21, 2017

I think that the problem is due to incorrect terminology. The event 'Failure' only occurs after the last attempt, same as on question slides. Since you have Infinite attempts, it will never occur.  The option Failure should be grayed out in that case but it is not.  Bit confusing, I know. Is this a scored D&D?

elearningbuilder11
Inspiring
November 21, 2017

Hello, Ohhhhhhh... thats why it doesnt work.

No, This is not being scored. How do I make this all happen then?

I want the remediation button to show each time they get the answers 'wrong'

Lilybiri
Legend
November 21, 2017

Bit late here, or I would test it out. Just an idea: set Attempts to 1 since it is a KC slide. The Failure event will occur in that case. If you want to offer another attempt, you'll have to re-enter the slide.

If you could find time to log a bug report. this confusing issue exists since D&D appeared. i haev been logging bug reports, but until today it has not been fixed, probably because too few users log a report.