Skip to main content
MTrozzo
Known Participant
January 16, 2019
Answered

Custom reset button in drag & drop

  • January 16, 2019
  • 2 replies
  • 1812 views

I'm working on a slide that has 8 drag & drop boxes in two groups of four. It looks like this:

The Undo and Submit buttons are the ones built in to the drag & drop.

Once I click Submit, I want one of two hidden groups to appear depending on whether the answer was correct. The groups will appear at the bottom above where the drag boxes are.

The "correct" group is made a shape the width of the slide, and on it an image, some text, and a button to continue to the next slide. This works correctly..

The problem is with the "incorrect" group. This group again has a shape, an image, text, and two buttons: A Continue button to go to the next slide, and a Reset button. What I want the Reset button to do is to reset the dragged items and hide the group panel, basically reverting the slide to the beginning. This Reset button is not the one built into the drag & drop, but is instead a shape button. I did this because I couldn't find a way to hide or show the built-in reset button.

The Continue button is an option because this is only informational. This is not being scored.

The Continue button works fine. However the Reset button does not work as planned.

I had read previous posts, and created two variables. One is v_enter which was assigned with cpInfoCurrentFrame. The other is v_counter assigned with 0. These were assigned with an action called in the slide's On Enter event.

I then created a reload action, which has two actions. One is an expression cpCmndGotoFrameAndResume = v_enter - 2, the other hides the "Incorrect" group. The reload action is called when I click Reset. What happens, however, is that first the "Incorrect" group is hidden (so far so good). Then the dragged items appear again at the bottom where they originally were. BUT they also still show where I dropped them in the target boxes. The project then goes forward to the next slide anyway.

What am I doing wrong here? Thanks in advance.

This topic has been closed for replies.
Correct answer Lilybiri

Need some details:

  • How many attempts for this D&D slide?
  • Is it a KC slide or a scored slide?

I have written a blog about having a custom Reset button, where micr onavigation is used to re-enter the slide. If it is a KC slide this will automatically reset all D&D objects..

2 replies

MTrozzo
MTrozzoAuthor
Known Participant
January 17, 2019

Lily, I found your blog post https://blog.lilybiri.com/replay-slide-button that I read this morning. It all works now! Hartelijk bedankt!

Lilybiri
LilybiriCorrect answer
Legend
January 16, 2019

Need some details:

  • How many attempts for this D&D slide?
  • Is it a KC slide or a scored slide?

I have written a blog about having a custom Reset button, where micr onavigation is used to re-enter the slide. If it is a KC slide this will automatically reset all D&D objects..

MTrozzo
MTrozzoAuthor
Known Participant
January 16, 2019

Thanks for your reply, lilybiri. In fact I think it was your post I was looking at (even if I didn't quite grasp it all but that's on me).

I have it set for one attempt, and I didn't set it as a KC or scored slide. I had created a blank slide and added a d&d interaction to it.

Lilybiri
Legend
January 16, 2019

A D&D is always either a KC or a Scored slide.... you must be very new to Captivate. There are several posts about D&D on my blog.