Skip to main content
Participating Frequently
July 28, 2015
Answered

Advanced action to only show a Back button on a slide if learner has clicked Submit button on Drag and Drop

  • July 28, 2015
  • 1 reply
  • 329 views

I'm a long-time Captivate User and have dabbled with Advanced Actions and Variables, so know just enough to get myself in trouble. Hoping someone can help me out with what I hope is a simple advanced action:

I'm currently using CP8 and have created a training where learners click on a building map to go to different "rooms" to complete a drag and drop interaction related to a certain HR topic. The problem is some of my test learners forget which "rooms" they've already viewed and will click on ones they've already visited. I added a Back button, so they can go back to the map if they made a mistake, but now they are able to exit the slide without completing the drag and drop interaction.

Basically, I need to hide the Back button unless the learner has already completed (e.g. clicked the Submit button for) the Drag and Drop interaction, but I'm just not sure how to set it up. Can anyone help?

Thanks!

This topic has been closed for replies.
Correct answer Lilybiri

Hide the back button to start with. Use an advanced action to be triggered  by both the Success and Failure event of the Drag&Drop. I suppose you'll need at least two commands:

  • Show Back button
  • Go to Next Slide.

That seems the easiest solution. You could also skip the D&D Slide when they enter a second time but then you'll need a boolean variable to be toggled by those same events, and an On Enter conditional action that checks that variable and immediately jumps to the next slide when it has the value 1.

1 reply

Lilybiri
Legend
July 28, 2015

I don't completely understand what you want? You are aware of the fact that a D&D slide is always reset when you leave it and come back, contrary to a question slide?

Where should that Back button be: is it on the D&D slide or on the slide after the D&D slide?

Participating Frequently
July 28, 2015

Hi Lilybiri,

The Back button is on the D&D slide. The D&D doesn’t reset once a learner submits the correct answers, and the Submit and Reset buttons disappear. This is why I added the Back button, so a learner could leave the slide if they returned to it by mistake:

I just don’t want that button to Show unless the learner has completed (passed or failed after 2 attempts) the D&D interaction. Is there a way to create an advanced action to do this?

Thanks!

Participating Frequently
July 28, 2015

Hide the back button to start with. Use an advanced action to be triggered  by both the Success and Failure event of the Drag&Drop. I suppose you'll need at least two commands:

  • Show Back button
  • Go to Next Slide.

That seems the easiest solution. You could also skip the D&D Slide when they enter a second time but then you'll need a boolean variable to be toggled by those same events, and an On Enter conditional action that checks that variable and immediately jumps to the next slide when it has the value 1.


Ahh, that makes perfect sense. I knew I was making it way more complicated than it needed to be (I was thinking I needed to create a conditional action with some type of variable).

Thanks, lilybiri. You've saved me a lot of time.